SECTION A [30 Marks]
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
b. Differentiate between post-increment and pre-increment using C code.
Q6. Illustrate any three string inbuilt functions of C programming Language using C
15 CO3
program.
Q7. Discuss the importance of Arrays in C. Write a program in C that will take input of
ten elements from a user and find out the total count of odd and even numbers entered
CO1+
by a user. You will also show the sum of all odd and even numbers entered by the user. 15
CO3
(e.g. If user has entered 2,3,6,7,8,12,40,1,11,31. Then total count of even numbers = 5
and odd numbers = 5. Sum of Even numbers = xx, Sum of Odd numbers = yy)
SECTION-C [25 Marks Attempt any one]
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