Skip to content

// Anna University, Chennai / 2025

Anna University — Problem Solving and Python Programming (GE3151), April/May 2025

Problem Solving and Python Programming · GE3151 · R2021 · B.E./B.Tech. Engineering (common paper) · Semester 1

Files open in a new tab. Use your browser's download or save option to keep a copy.

Work through the questions

15 questions

No verified answers are available for this paper.

  1. Question 1

    Part AUnit 1Descriptive2 marks

    Python

    List the building blocks of an algorithm.

    No verified answer or solution is available for this question.

  2. Question 2

    Part AUnit 1Descriptive2 marks

    Python

    Write the characteristics of pseudocode.

    No verified answer or solution is available for this question.

  3. Question 3

    Part AUnit 2Descriptive2 marks

    Python

    Write a snippet to display "Hello World" in the Python interpreter.

    No verified answer or solution is available for this question.

  4. Question 4

    Part AUnit 2Descriptive2 marks

    Python

    Give the difference between intermediate mode and script mode.

    No verified answer or solution is available for this question.

  5. Question 5

    Part AUnit 3Descriptive2 marks

    Python

    Define string immutability.

    No verified answer or solution is available for this question.

  6. Question 6

    Part AUnit 3Descriptive2 marks

    Python

    Do loop statements have else clauses? When will the clause be executed?

    No verified answer or solution is available for this question.

  7. Question 7

    Part AUnit 4Descriptive2 marks

    Python

    Let list = ['a', 'b', 'c', 'd', 'e', 'f']. Find: (a) list[1:3] (b) list[:4] (c) list[3:]

    No verified answer or solution is available for this question.

  8. Question 8

    Part AUnit 4Descriptive2 marks

    Python

    Define dictionary methods with an example.

    No verified answer or solution is available for this question.

  9. Question 9

    Part AUnit 5Descriptive2 marks

    Python

    Generalize the uses of a Python module.

    No verified answer or solution is available for this question.

  10. Question 10

    Part AUnit 5Descriptive2 marks

    Python

    List a few common exception types and when they occur.

    No verified answer or solution is available for this question.

  11. Question 11

    Part BUnit 1Descriptive16 marks

    Python

    (a) Write the algorithm and pseudocode and draw the flowchart for the following: (i) Find the minimum in a list. (ii) Insert a card in a list of sorted cards. (iii) Guess an integer number in a range. (iv) Towers of Hanoi. (OR) (b) (i) Explain simple strategies for developing an algorithm. (8 marks) (ii) Write recursive and iterative algorithms for inserting a card in a list of sorted cards. (8 marks)

    No verified answer or solution is available for this question.

  12. Question 12

    Part BUnits 2, 4Descriptive16 marks

    Python

    (a) (i) Explain the data types in Python. Illustrate with a suitable example. (8 marks) (ii) Write short notes on the types of operators in Python with an appropriate example. (8 marks) (OR) (b) (i) Discuss the difference between tuples and lists. (4 marks) (ii) Discuss the various operations that can be performed on tuples and lists with an example program. (12 marks)

    No verified answer or solution is available for this question.

  13. Question 13

    Part BUnit 3Descriptive16 marks

    Python

    (a) (i) Write a Python program to count the vowels in a string provided by the user. (6 marks) (ii) Explain the types of function arguments in Python. (6 marks) (iii) Create a Python program to find whether the given year is a leap year. (4 marks) (OR) (b) (i) Explain the different types of function prototypes with an example. (8 marks) (ii) Examine the program on the Fibonacci series. (4 marks) (iii) Illustrate the concept of local and global variables. (4 marks)

    No verified answer or solution is available for this question.

  14. Question 14

    Part BUnit 4Descriptive16 marks

    Python

    (a) Describe the following with suitable examples: (i) Creating a list. (ii) Accessing values in a list. (iii) Updating a list. (iv) Deleting list elements. (OR) (b) (i) Explain basic tuple operations with examples. (8 marks) (ii) Write a program to check whether "y" and "a" belong to the tuple My_tuple = (, p, y, t, h, o, n). After printing the result, delete the tuple. (8 marks)

    No verified answer or solution is available for this question.

  15. Question 15

    Part BUnit 5Descriptive16 marks

    Python

    (a) (i) Explain Python file handling. (8 marks) (ii) Describe locating modules in detail. (8 marks) (OR) (b) (i) Describe exceptions with arguments in detail. (8 marks) (ii) Describe user-defined exceptions in detail. (8 marks)

    No verified answer or solution is available for this question.

Keep preparing

Revisit another year or explore a different paper in the library.

More from this exam