24ESC111 – PROBLEM SOLVING AND PYTHON PROGRAMMING
IMPORTANT QUESTIONS
UNIT 1 COMPUTATIONAL THINKING AND PROBLEM SOLVING
PART A
1. What is algorithm and write characteristics of good algorithm
2. Define Pseudo code with example
3. Define Flowchart with example
4. Difference between Iteration vs Recursion
5. Difference between Top down approach and Bottom up approach in algorithm
PART B
1. Building blocks of algorithm
2. Towers of Hanoi (Definition, rules, diagram, algorithm, pseudocode)
3. Algorithmic problem solving / Program development life cycle
4. Algorithm , Pseudocode and flowchart for
1. Find minimum in a list
2. Insert a card in a list of sorted cards
3. Guess an integer in a range
EXTRA
1. Simple strategies for developing algorithms (recursion and iteration)
2. Pseudocode (Definition, Rules, Examples)
3. Flowchart (Definition, Rules, Examples)
4. Difference between machine language, Assembly language and Programming
language
UNIT 2 DATA TYPES, EXPRESSIONS, STATEMENTS
PART-A
1. Difference between interactive and script mode
2. Tuple assignment
3. List the data type in python
4. Define variables and write variable naming rules
5. Distance between two points
PART-B
1. Different data types in python with example.
2. Operators in python and operator precedence
3. a. Python interpreter and script mode
b. Compiler Vs interpreter
EXTRA
Python programs for
1. To exchange values of two variables / swapping two values
2. Circulate the values of n variables
3. Python program to find given year is Leap year or not
UNIT 3 CONTROL FLOW, FUNCTIONS, STRINGS
PART-A
1. What is fruitful function
2. Len ( ) function and range ( ) function in python (Definition, syntax, example)
3. Differentiate Local and global slope variables
4. Define String slicing
5. Define String immutability
EXTRA
1. Square root program
2. Exponentiation program
3. GCD program
PART-B
1. Conditional branching statement
2. Iteration statement /looping statement /Discuss for, while, break, continue in
python
3. String function and methods in python
EXTRA
1. Call by reference and call by value in python
2. Linear search (Definition, Algorithm, Program, Output)
3. Binary search (Definition, Algorithm, Program, Output)
UNIT 4 LIST , TUPLES, DICTIONARIES
PART-A
1. Define list, give example
2. What is list aliasing, give example
3. What is list cloning , give example
4. Define tuple , give example
5. Define dictionary , give example
PART-B
1. List operations and methods in python
2. Tuple operations in python
3. What is dictionary? Discuss the operations and methods of dictionary with example
UNIT 5 FILES, MODULES, PACKAGES
PART-A
1. What is file and its type ?
2. List different file modes in python
3. Difference between modules and packages
4. What is command line argument
5. What is exception handling?
6. What is format operation?
7. Difference between error and exception
8. What are the Built in modules in python? Give example.
PART-B
1. Explain python files, its types , functions and operations that can be performed in
files
2. What is exception handling ? Explain the types of exception handling mechanisms
with examples
3. Explain about python modules and packages with example.