Skip to content
SmartFigureEduExam kits ₹19

GE3151 · QP 21184 · Nov/Dec 2023

GE 3151 Problem Solving and Python Programming question paper, November/December 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 : 21184

B.E./B.Tech. DEGREE EXAMINATIONS, NOVEMBER/DECEMBER 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.

    What is Algorithm?

  2. 2.

    What are the simple strategies for developing algorithms?

  3. 3.

    List the various single valued data types in Python.

  4. 4.

    What is an indentation in python? Give an example.

  5. 5.

    Write a for loop that prints numbers from 0 to 57 using the range function in python.

  6. 6.

    What is the fruitful function in python?

  7. 7.

    What are List Comprehension? Mention its advantages.

  8. 8.

    What is a tuple in python? Give an example.

  9. 9.

    Write the significance of format operator.

  10. 10.

    How exceptions are handled in python?

PART B — (5 × 16 = 80 marks)

  1. 11.
    (a)
    • (i)What are the building blocks of algorithm, explain in detail.(6)
    • (ii)Discuss the various process to the smallest value in the list a = [18, 52, 23, 41, 32] and write a simple python program for the same.(10)
  2. Or
  3. (b)
    • (i)Explain the logic of the Tower of Hanoi puzzle and write a simple python program for the same and mention the time complexity.(12)
    • (ii)Define the computational problem and how these problems are classified.(4)
  4. 12.
    (a)
    • (i)Explain the python interpreter and interactive mode in detail.(12)
    • (ii)What operator has the highest precedence in Python?(4)
  5. Or
  6. (b)
    • (i)Write a python program to calculate the distance between two points.(8)
    • (ii)Explain the different Boolean and bitwise operator types in Python?(8)
  7. 13.
    (a)
    • (i)Illustrate the different types of control flow statements in Python with flowcharts.(12)
    • (ii)Explain any two string formats available in Python.(4)
  8. Or
  9. (b)
    • (i)Discuss the binary search algorithm with time complexity and write a python to implement the same using the recursive method.(12)
    • (ii)Why are strings in Python immutable?(4)
  10. 14.
    (a)
    • (i)Discuss the differences and applications of List, Tuple, and Dictionary in Python.(12)
    • (ii)Explain any cloning list technique in python.(4)
  11. Or
  12. (b)
    • (i)Discuss Python dictionaries and list some of their methods.(8)
    • (ii)Write a simple sorting python program to sort different data types.(8)
  13. 15.
    (a)
    • (i)Explain in detail python files, their types, functions, and operations that can be performed on files with examples.(12)
    • (ii)Differentiate between Python Modules and Packages.(4)
  14. Or
  15. (b)
    • (i)Write a simple python program to count the number of words in the sentence using the split method and list other count methods.(12)
    • (ii)What are command line arguments in python?(4)

Other GE3151 papers