Practice Question Paper
Practice Question Paper
S. No. Marks CO
Q1. Draw a flow chart to find costliest car among three different cars. Write an algorithm
7 CO1
and C program for the flow chart.
Q2. Distinguish between compiler and interpreter. Explain the process of compilation and
8 CO1
execution for gcc compiler using any C program.
Q3. Demonstrate the exit control loop through a C program that will generate the reverse
8 CO2
of an entered digit. e.g. if user enters 4732 then output comes 2374
Q4. Differentiate between logical and relational operators using small C program 7 CO2
SECTION B [ 45 Marks]
Q5. a. Demonstrate the use of nested for loop using C program that can generate the
output as below and explain:
1
22 CO1+
10+5
333 CO2
55555
Q8. a. Discuss the various data types used in C programming language along with
their memory occupancy.
b. Design and write a menu driven program that will provide users the
following options:
Press:
CO1+
1 → Factorial of a number
5+20 CO2+
2 → Table of a number
CO3
3 → Number is prime of not
4 → Wants to continue
5 → Exit
As per the above mentioned menu your program must compute the entered input and
show output to the user
OR
Q9. Discuss the following:
a. Keywords of C programming Language
CO1+
b. Type Conversion
25 CO2+
c. While loop
CO3
d. #include<string.h>
e. Nested if-else