// 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.
List the building blocks of an algorithm.
No verified answer or solution is available for this question.
Write the characteristics of pseudocode.
No verified answer or solution is available for this question.
- 2025
- 2022
Also asked in Anna University — Problem Solving and Python Programming (GE3151), November/December 2022 (2022).
Write a snippet to display "Hello World" in the Python interpreter.
No verified answer or solution is available for this question.
Give the difference between intermediate mode and script mode.
No verified answer or solution is available for this question.
- 2025
- 2023
Also asked in Anna University — Problem Solving and Python Programming (GE3151), April/May 2023 (2023).
Define string immutability.
No verified answer or solution is available for this question.
- 2025
- 2019
Also asked in Anna University — Problem Solving and Python Programming (GE8151), November/December 2019 (2019).
Do loop statements have else clauses? When will the clause be executed?
No verified answer or solution is available for this question.
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.
Define dictionary methods with an example.
No verified answer or solution is available for this question.
Generalize the uses of a Python module.
No verified answer or solution is available for this question.
List a few common exception types and when they occur.
No verified answer or solution is available for this question.
(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.
(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.
(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.
(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.
(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.