Skip to content
SmartFigureEduExam kits ₹19

GE3151 · QP 30198 · Apr/May 2023

GE 3151 Problem Solving and Python Programming question paper, April/May 2023

GE3151 exam kitRepeated questions + all papers, 1 PDF

Exam kit

Needed by the payment gateway. Not shared or used for marketing.

Secure payment by Cashfree Payments (UPI, cards, net banking). One-time payment, no subscription. The payment page may show StrangerYaar, the business that processes payments for SmartFigure.Terms · Refunds

Question Paper Code : 30198

B.E./B.Tech. DEGREE EXAMINATIONS, APRIL/MAY 2023.

First Semester

Civil Engineering

GE 3151 — PROBLEM SOLVING AND PYTHON PROGRAMMING

(Common to : All Branches)

(Regulations 2021)

Time : Three hoursMaximum : 100 marks

Answer ALL questions.

PART A — (10 × 2 = 20 marks)

  1. 1.

    State the qualities of a good algorithm.

  2. 2.

    Enumerate the strategies involved in developing algorithm.

  3. 3.

    What are the rules for writing an identifier?

  4. 4.

    Mention the types of arguments in python.

  5. 5.

    Compare return value and composition.

  6. 6.

    Define string immutability.

  7. 7.

    Define cloning in list.

  8. 8.

    What is the benefit of using tuple assignment in python?

  9. 9.

    How do you delete a file in Python?

  10. 10.

    How do you use command line arguments to give input to the program?

PART B — (5 × 16 = 80 marks)

  1. 11.
    (a)
    • (i)Briefly describe iteration and recursion. Illustrate with an example.(8)
    • (ii)Write an algorithm and give the flowchart to find the net salary of an employee.(8)
  2. Or
  3. (b)
    • (i)Compare machine language, assembly language and high-level language.(8)
    • (ii)Write the pseudocode for the following : (1) Find maximum in a list (2) Towers of Hanoi.(8)
  4. 12.
    (a)
    • (i)List down the rules for naming the variable with examples.(8)
    • (ii)Write a Python program to swap two variables.(8)
  5. Or
  6. (b)
    • (i)What is precedence? List out the order of precedence and demonstrate in detail with example.(8)
    • (ii)Write a Python program to check whether a given year is a leap year or not.(8)
  7. 13.
    (a)
    • (i)Explain string module.(8)
    • (ii)Write a program to find the sum and average of array of numbers.(8)
  8. Or
  9. (b)

    Write a program to perform search operation which sequentially checks each element of the list until a match is found or the whole list has been searched?

  10. 14.
    (a)

    Explain in detail about lists, list operations and list slices.

  11. Or
  12. (b)

    Write a program to generate electricity bill based upon the no. of units consumed. Refer the table below for unit and price details. [Table: No. of units consumed - Price (Domestic) - Price (Commercial): 1. Upto 200 units - 200 (Base price) - 500; 2. Units >200 and <500 - 1100 - 1700; 3. Units >500 <1000 - 4500 - 7000] Note : Program should read information from the user. Whether it is for domestic or commercial purpose.

  13. 15.
    (a)
    • (i)Write a function that copies a file reading and writing upto 50 characters at a time.(8)
    • (ii)Write a python program to count number of lines, words and characters in a text file.(8)
  14. Or
  15. (b)

    Write a Python program to implement stack operations using modules.


Other GE3151 papers