

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Mid-Term Exam Question Paper December 2021
Typology: Papers
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Roll No. .............. .................
Time : 1½·Hours Maximum Marks : 50 Note : (i) Answer all the questions by choosing any one of the sub-questions. (ii) Each question carries IO marks.
How is while loop different from do--while (^) .loop '? Explain with the help of an example. (CO2)
+· (a) What is the use of static and auto variables? Explain with the help of a suitable example. (CO2) OR (b) Write a program to calculate factorial , of a number entered by user. Number should be less than 10, if it is greater than or equal to 10 it should print in reverse order. (^) (CO2)
P. T. 0.
( 2)
). (n) What do 'you understand by the terms .data trPes, keywords, variables and constants? (^) (CO2) OR
(C03)
(b) Write a program to print sum of all even numbers between user entered two values (assuming first value is less than se~ond value). (CO2)
~