B.E/B.
Tech- DEGREE EXAMINATION, Nov/Dec 2025
Department of Science and Humanities
24UCS105/Problem Solving & Python Programming
QUESTION BANK
Unit I–Computational Thinking and Problem Solving
Part A
1. Define Algorithm
2. Write an algorithm to find sum of first n natural numbers
3. What is a Pseudocode?
4. List the different building blocks of algorithms.
5. Define recursion.
PartB
1. Discuss about the building blocks of an algorithm.
2. Explain the steps to identify the computational problem.
3. Explain the iteration method for developing algorithm.
4. Write a recursive algorithm of Tower of Hanoi.
Unit II–Data Types, Expressions, Statement
Part A
1. What is python comments?
2. What is python indentation?
3. Compare interpreter and [Link] type of translator is used for python?
4. What are keywords? Give examples.
5. What is a tuple? Give examples.
Part B
1. Write about different types of python operators with example scripts.
2. Summarize the precedence of operators in python.
3. Compare interpreter and compiler. What type of translator is used for python explain with neat diagram.
4. Describe the shift,bitwise,identity and logical operators used in python with examples.
Unit III–Control Flow,Function, Strings
Part A
1. Differentiate while loop and for loop
2. Outline the Conditional branching statements in Python with an example.
3. Differentiate continue and pass.
4. Define recursion with an example.
5. Write a Python program to accept two numbers find the greatest and print the result.
Part B
1. List the three types of conditional branching statements in python and explain them.
2. Python strings are immutable. Justify with an example.
[Link] function with example.
[Link] the two types of looping statement in python and explain them.
Unit IV–List,Tuples,Dictionaries
PartA
1. List out different built-in methods used in tuple.
2. What is a list? How lists differ from tuples?
[Link] is cloning list? Give example.
[Link] is difference between list and tuple in python?
[Link] is the benefit of using tuple assignment in python?
PartB
1. Explain in detail about python dictionary with necessary examples.
2. Compare and contrast tuple and list in python.
3. Explain in detail about lists, list operations and list slices.
4. Write separate python programs to illustrate create, access,concatenate and delete operations in a tuple.
Unit V- Files,Modules,Packages
PartA
1. Write notes on python module.
2. How to use command line arguments in python?
3. Write methods to rename and delete files.
4. What is module? Give example.
5. What are packages? How to import modules from a package?
PartB
1. Explain the commands used to read and write into a file with example.
2. Describe how exceptions are handled in python with necessary examples.
3. What are modules in python? How will you import them? Explain the concept by creating and importing a module.
4. Explain the use of packages and modules in python with example.
4. .(8)
Unit IV–List,Tuples,Dictionaries
PartA
3. List out different built-in methods used in tuple.
4. What is a list? How lists differ from tuples?
5. What is cloning list? Give example.
6. Whatisdifferencebetweenlistandtupleinpython?
PartB
5. Explain in detail about python dictionary with necessary examples.
6. Compare and contrast tuple and list in python
UnitV- Files,Modules,Packages
PartA
6. Write notes on python module.
7. How to use command line arguments in python?
8. Write methods to rename and delete files.
9. What is module? Give example.
10. What are packages? How to import modules from a package?
PartB
5. Explain the commands used to read and write into a file with example(8)
6. Describe how exceptions are handled in python with necessary examples(16)
7. What are modules in python? How will you import them? Explain the concept by creating and importing a module.