Ia 1 QP C&DS
Ia 1 QP C&DS
Part-B (5 x 16 = 80 marks)
11a (i) Generate an algorithm and draw the flowchart to guess an integer number CO1
in a given range {1-100}. (8)
(ii) Write an algorithm and draw the flowchart insert a card in a list of sorted
cards. (8)
OR
11b Create an algorithm and draw the flowchart for towers of Hanoi. Also write CO1
the Pseudo code for Towers of Hanoi (16)
12a Explain in detail about notations (Pseudo code, Flowchart and Programming CO1
languages). (16)
OR
12b Discuss in detail about algorithmic problem solving with appropriate diagram. CO1
(16)
13a (i)Illustrate about the building blocks of an algorithm. (8)
(ii)Write a python program to find the largest among three numbers CO2
{a=10, b=15, c=7}. (8)
OR
13b (i)Compare recursion and iteration with an example. (8) CO2
(ii) Develop an algorithm and draw the flowchart to find the minimum
element in the given list {56, 30, 45, 17, 5, 99, 86}. (8)
14a (i)Write a python program to find the student grade system. (8) CO2
(ii) Write a python program to find the sum of ‘n’ natural numbers. (8)
OR
14b (i)Write the program to exchange the values of two variables. (5) CO2
(ii) Create a python program to circulate the values of ‘n’ variable. (6)
(iii) Write the program to calculate the distance between two points. (5)
15a Explain if, if…else, if…elif…else, Nested if structures in detail with CO3
examples. (16)
OR
15b Define operator. Explain the types of operators with an example. (16) CO3