ACADEMIC YEAR (2025-2026) EVEN SEMESTER
SUBJECT CODE : 24ESC111 YEAR/SEMESTER : I/II
SUBJECT TITLE : Problem Solving and DEPARTMENT : MECH & EEE
PythonProgramming
QUESTION BANK – UNIT 1
Part A (2 Marks)
S.No. Question Bloom's Level
1 What is an algorithm? Remember
2 Write an algorithm to find minimum of three numbers. Understand
3 List the building blocks of algorithm. Remember
Remember
4 Define statement. List its types.
Write the pseudocode to calculate the sum and product of two Understand
5
numbers and display it.
Analyze
6 How does flow of control work?
Write the algorithm to calculate the average of three numbers Understand
7
and display it.
Understand
8 Give the rules for writing Pseudocode.
Remember
9 What is a function?
10 Give the difference between flowchart and pseudocode. Analyze
11 Define a flowchart. Understand
Understand
12 Give an example of iteration.
Understand
13 Write down the rules for preparing a flowchart.
14 List the categories of Programming languages. Understand
15 Mention the characteristics of algorithm. Remember
Understand
16 List out the simple strategies to develop an algorithm.
Compare machine language, assembly language and high- Analyze
17
level language.
18 Describe algorithmic problem solving. Understand
19 Give the difference between recursion and iteration. Analyze
20 What are advantages and disadvantages of recursion? Understand
Write an algorithm to accept two numbers, compute the sum
21 Understand
and print the result.
Write an algorithm to find the sum of digits of a number and
22 Understand
display it.
23 Write an algorithm to find the square and cube and display it. Understand
24 Explain Tower of Hanoi. Understand
25 What is recursion? Understand
Part B (16 marks)
S.No. Question Bloom's Level
i. Explain with an example the building blocks of an
1 algorithm. Understand
ii. Draw a flow chart to print the first ‘n’ prime numbers.
i. Briefly describe iteration and recursion.
2 ii. Write a recursive algorithm to solve Towers of Hanoi Understand
problem.
3 Explain Algorithmic problem solving. Understand
4 Write an algorithm and draw a flowchart to calculate 24 Understand
5 Illustrate Algorithm, Psuedocode and Flowchart with an example. Understand
a) Write a program to insert a card in a list of sorted cards.
6 Apply
b) Write a program to find the minimum number in a list.
Outline the Towers of Hanoi problem. Suggest a solution to the
7 Apply
Towers of Hanoi problem with relevant diagrams.
8 Identify simple strategies for developing an algorithm. Understand
Mention the different types of iterative structures allowed in
9 python. Explain the use of continue and break Understand
statements with an example.
a)What is recursive function? What are its advantages and
disadvantages? Compare it with iterative function.
10 Understand
b)The algorithm to find all the prime numbers less than or equal
to a given integer n
Faculty In-charge HOD
ACADEMIC YEAR (2025-2026) EVEN SEMESTER
SUBJECT CODE : 24ESC111 YEAR/SEMESTER : I/II
SUBJECT TITLE : Problem Solving and DEPARTMENT : MECH & EEE
PythonProgramming
QUESTION BANK – UNIT 2
Part A (2 Marks)
S.No. Question Bloom's Level
1 Define function and state its use Remember
2 What does recursive function implies? Remember
Analyze
3 Analyze the different kinds of arguments
Evaluate
4 Evaluate the importance of fruitful functions
Analyze
5 Analyze the need to divide a program into functions
Apply
6 Write a program to print n numbers iteratively using function.
Apply
7 Using the concept of functions, calculate the area of a circle.
Using the concept of tuple assignment, how will you swap two Apply
8
values?
Understand
9 What do you mean by fruitful function?
10 Outline the scope of variables. Understand
11 Write the syntax of if-else statements Remember
Analyze
12 Differentiate for loop and while loop
Understand
13 List any three built-in functions and its usage
14 Write a function without argument and with return type Analyze
15 Differentiate local and global variables Apply
Apply
16 Write a program to find the sum of the digits of a number
Understand
17 Illustrate the flowchart of if-elif-else statements
How would you test the significance of for loop with else in
18 Analyze
an example
19 Present the flow of execution for a while statement. Understand
20 Write the syntax for function definition. Remember
21 Name the type of Boolean operators Remember
22 Describe break statement with an example Understand
23 Write a program to find square root of a given number. Apply
24 Give the syntax for pass and continue statements Remember
25 Write a python program to display numbers 1 to 10. Apply
Part B (16 marks)
S.No. Question Bloom's Level
Write a program to determine the factorial of a given number
1 Apply
with and without the use of recursion
What does fruitful function refers to? How it can be used?
2 Understand
Explain with an example
List the different types of arguments / parameters used in
3 Understand
function with suitable examples.
Using a python program, analyze the different logic behind
4 Apply
swapping the values between variables
Write a program to find the square root of a number by Iterative
5 Apply
newton’s method.
Explain the looping statements (while and for loops) with an
6 Understand
example.
List the different types of conditional control statements and
7 Understand
explain them with suitable example
(i) Write a Python program to find the GCD of given two
8 numbers. (ii)Write a Python program to find the exponent of a Apply
number using recursion.
(i). Write a python program to find the greatest among three
9 numbers. (ii). Write a program to check the given number is Apply
Armstrong number or not.
Explain with an example break and continue statements using
10 Understand
while loop.
Faculty In-charge HOD
ACADEMIC YEAR (2025-2026) EVEN SEMESTER
SUBJECT CODE : 24ESC111 YEAR/SEMESTER : I/II
SUBJECT TITLE : Problem Solving and DEPARTMENT : MECH &EEE
PythonProgramming
QUESTION BANK – UNIT 3
Part A (2 Marks)
S.No. Question Bloom's Level
Define function and state its use.
1 Remember
What does recursive function implies?
2 Remember
Analyze the different kinds of arguments. Analyze
3
Evaluate the importance of fruitful functions. Evaluate
4
Analyze the need to divide a program into Analyze
5 functions
Write a program to print n numbers iteratively Create
6 using function.
Using the concept of functions, calculate the area Apply
7 of a circle
Using the concept of tuple assignment, how will Apply
8 you swap two values?
What do you mean by fruitful function? Understand
9
Outline the scope of variables.
10 Understand
Write the syntax of if-else statements.
11 Remember
Differentiate for loop and while loop. Analyze
12
List any three built-in functions and its usage. Understand
13
Write a function without argument and with
14 return type. Analyze
Differentiate local and global variables.
15 Apply
Write a program to find the sum of the digits of a Evaluate
16 number
Illustrate the flowchart of if-elif-else statements Apply
17
How would you test the significance of for loop
18 with else in an example Evaluate
Present the flow of execution for a while statement.
19 Remember
Write the syntax for function definition.
20 Remember
21 Name the type of Boolean operators. Remember
22 Describe break statement with an example. Understand
23 Write a program to find square root of a given number. Create
24 Give the syntax for pass statements. Understand
25 Give the syntax for continue statements. Understand
Part B (16 marks)
S.No. Question Bloom's Level
Using the concept of control structure determine the prime
1. Apply
numbers in given range using Python.
Write a program to determine the factorial of a given number
2 Evaluate
with and without the use of recursion
What does fruitful function refers to? How it can be used?
3 Understand
Explain with an example
Write the syntax and explain the concept of
4 (i) Recursive function with an example. Remember
(ii) (ii) to search an element using linear search
List the different types of arguments / parameters used in
5 Remember
function with suitable examples
Using a python program, analyze the different logic behind
6 Analyze
swapping the values between variables
Write a program to find the square root of a number by Iterative
7 Create
newton’s method.
Explain the looping statements (while and for loops) with an
8 Understand
example.
List the different types of conditional control statements and
9 Understand
explain them with suitable example
Describe the concept of binary search with suitable example and
10 Evaluate
write python code to implement.
Explain with an example break and continue statements using
11 Analyze
while loop.
Write a python code to print all numbers in a range (a,b)divisible
12 Apply
by a given number (n)
What is function? How a function is defined and called in
13 Remember
python? Explain with a simple program
(i) Write a Python program to find the GCD of given two
14 numbers. (ii)Write a Python program to find the exponent of a Apply
number using recursion.
(i). Write a python program to find the greatest among three
15 numbers. (ii). Write a program to check the given number is Understand
Armstrong number or not.
Faculty In-charge HOD