Skip to content
SmartFigureEduExam kits ₹19

GE3151 · QP 51224 · Apr/May 2024

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

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 : 51224

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

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.

    Differentiate Algorithm and Pseudo code.

  2. 2.

    Write any two disadvantages of flowchart?

  3. 3.

    What is the difference between interactive mode and script mode?

  4. 4.

    Mention the features of lists in python.

  5. 5.

    What is 'len' function? Give example for how it is used on strings.

  6. 6.

    How to split strings and what function is used to perform that operation?

  7. 7.

    What is range( ) function and how it is used in lists?

  8. 8.

    What are the advantages of 'Tuple' over 'List'?

  9. 9.

    What is module and package in Python?

  10. 10.

    List few common exception types.

PART B — (5 × 16 = 80 marks)

  1. 11.
    (a)
    • (i)Explain the steps involved in program development cycle.(8)
    • (ii)Write the algorithm, pseudocode and draw the flowchart for the following : (1) Guess an integer number in a range. (4) (2) Towers of Hanoi. (4)(8)
  2. Or
  3. (b)
    • (i)Explain the design structures in pseudo code.(8)
    • (ii)Write the algorithm, pseudocode and draw the flowchart for the following : (1) To find the sum of square root of any three numbers. (4) (2) To find the sum of first 100 integers. (4)(8)
  4. 12.
    (a)

    Write the following python programs

    • (i)Test whether a given year is leap year or not(8)
    • (ii)To convert Celsius to Fahrenheit.(8)
  5. Or
  6. (b)

    Write the following python programs

    • (i)To find whether a given number is Armstrong number or not(8)
    • (ii)To print Fibonacci series.(8)
  7. 13.
    (a)
    • (i)Explain call by value and call by reference in python.(8)
    • (ii)How to perform a user input in Python? Explain with example.(8)
  8. Or
  9. (b)
    • (i)Briefly explain about function prototypes.(8)
    • (ii)Write a program to check whether entered string is palindrome or not.(8)
  10. 14.
    (a)

    What are the basic list operations that can be performed in Python? Explain each operation with its syntax and example.

  11. Or
  12. (b)

    What is Dictionary? Explain Python dictionaries in detail discussing its operations and methods.

  13. 15.
    (a)
    • (i)Write a program to enter a number in Python and print its octal and hexadecimal equivalent.(8)
    • (ii)Explain in detail about namespaces and scoping.(8)
  14. Or
  15. (b)

    Explain in detail about Python Files, its types, functions and operations that can be performed on files with examples.


Other GE3151 papers