C Programming Exam Questions
C Programming Exam Questions
X5
1
1B
5
Y6
Paper / Subject Code: 29715 / C Programming
F5
52
57
Y6
1B
7X
25
BF
May 29, 2024 10:30 am - 12.30 pm 1T01832 - F.E.(SEM II)(ALL BRANCHES) (Rev - 2019-20)(C
7X
25
X5
Y6
F5
61
Scheme) / 29715 - C Programming QP CODE: 10056109
X5
F5
57
1B
25
Y
57
1B
25
BF
X5
Y 6
BF
X5
Y6
61
57
25
61
57
25
5Y
BF
X5
F
Time: 2 Hours Max. Marks: 60
X5
52
61
57
1B
25
5Y
57
7X
5Y
Y6
52
1B
7X
NB: 1) Question No.1 is compulsory.
F
F5
52
1B
7X
25
2) Attempt any three questions from question no. 2 to 6.
Y6
F5
1B
7X
X5
Y6
F5
1B
25
Y6
F5
57
1B
25
X5
Y6
1B
25
BF
Y6
Q1 Solve any three out of the following. 15
57
7X
25
BF
X5
6
Write a C program to get age and vaccination details as input. Print “senior
61
25
Y
A 05
F5
61
57
1B
7X
25
5Y
citizen and eligible for booster” if age > 60 and vaccination input as ‘2’,
X5
1B
5Y
BF
X5
Y6
F5
2
otherwise print “below 60 and eligible for vaccination”. Use conditional
57
5
Y6
52
61
57
1B
7X
25
BF
operator.
7X
25
5Y
BF
X5
Y6
F5
61
B Write string handling functions in C used to do following task: 05
X5
F5
52
2
61
57
1B
25
5Y
If first name, middle name, last name given as an input display it as a
X5
57
7X
1B
5Y
Y6
52
1B
57
7X
BF
full name.
Y6
F5
52
7X
25
BF
Display number of characters in full name.
Y6
61
1B
7X
25
F
X5
F5
61
1B
Convert first name into capital letters and last name into small letters.
25
5Y
X5
Y6
F5
57
1B
5Y
X5
Y6
52
1B
57
25
BF
Y6
52
57
7X
25
BF
X5
Y6
7X
5
BF
X5
F5
52
61
57
25
1
5Y
F5
61
57
1B
5Y
BF
X5
22
2
57
1B
5Y
BF
Y6
52
61
57
7X
333
BF
Y6
52
7X
25
5Y
BF
Y6
4444
61
7X
25
F
X5
F5
52
61
1B
25
55555
5Y
X5
F5
57
7X
B
5Y
X5
Y6
61
1B
57
BF
F5
52
57
7X
25
BF
Y6
61
1B
7X
25
BF
X5
F5
61
25
5Y
X5
Y6
F5
61
1B
5Y
Q2 15
X5
F5
2
1B
57
5Y
Y6
7X
BF
Y6
52
61
7X
25
F5
61
7X
25
5Y
X5
F5
1
1B
5Y
5
Y6
F5
52
1B
Y6
52
1B
7X
25
BF
number or not.
Y6
F5
7X
5
5
Y6
F5
52
61
7X
25
F5
7X
25
5Y
X5
F5
1B
5
F5
52
1B
57
7X
Y6
7X
25
BF
6
F5
25
5Y
Y6
F5
61
1B
7X
X5
52
Q3 15
1B
25
5Y
6
F5
57
5Y
52
1B
7X
5Y
BF
Equation; (ax2+bx+c=0) as input and compute all possible roots and print
52
7X
6
F5
52
61
X
5Y
1B
5Y
52
Define array. Write a C program to find the sum and average of n integer
57
B 05
1B
BF
52
7X
5Y
BF
X
F5
52
61
57
25
1B
7X
BF
X5
25
Y6
F5
61
57
X5
1B
25
BF
56109 Page 1 of 2
7
25
X5
Y6
F5
61
X5
57
1B
25
5Y
7
X5
Y6
F5
52
X525Y61BF57X525Y61BF57X525Y61BF57X525Y61BF57
57
1B
7X
25
F
X5
1
1B
5
Y6
Paper / Subject Code: 29715 / C Programming
F5
52
57
Y6
1B
7X
25
BF
7X
25
X5
Y6
Q4
F5
61
X5
F5
57
1B
25
15
Y
57
1B
25
BF
X5
6
A What is nested Structure? Explain with proper example. 05
BF
X5
Y6
61
57
25
61
57
25
5Y
BF
X5
B Explain pointer operators with proper example. 05
X5
52
61
57
1B
25
Write a C program to replace all occurrences of a character with another in a
5Y
C 05
57
7X
5Y
Y6
string.
52
1B
7X
F
F5
52
1B
7X
25
Y6
F5
1B
7X
X5
Y6
F5
Q5 15
1B
25
Y6
F5
57
1B
25
A Write a program to calculate power of a number(x raised to n), accept value 05
X5
Y6
1B
25
BF
Y6
of x and n from the user.
57
7X
25
BF
X5
61
25
Y
B What is the necessity of parameter passing to function? What are the two 05
F5
61
57
1B
7X
25
5Y
X5
ways of parameters passing to function? Explain any one in detail.
1B
5Y
BF
X5
Y6
F5
57
C Give the difference between break and continue with an example. 05
Y6
52
61
57
1B
7X
25
BF
7X
25
5Y
BF
X5
Y6
F5
61
Q6 15
X5
F5
52
2
61
57
1B
25
5Y
X5
A Write a C program to find sum of principal diagonal elements of a given 05
57
7X
1B
5Y
Y6
52
1B
57
7X
square matrix.
BF
Y6
F5
52
7X
25
BF
Y6
61
1B
7X
25
F
X5
F5
61
1B
25
5Y
using Recursive function.
X5
Y6
F5
57
1B
5Y
X5
Y6
52
C Define pseudocode. Draw flowchart and write a pseudocode to find whether 05
1B
57
25
BF
Y6
52
57
7X
25
BF
X5
Y6
61
7X
5
BF
X5
F5
52
61
57
25
5Y
F5
61
57
1B
5Y
BF
X5
57
1B
5Y
BF
Y6
52
____________________
61
57
7X
BF
Y6
52
7X
25
5Y
BF
Y6
61
7X
25
F
X5
F5
52
61
1B
25
5Y
X5
F5
57
7X
B
5Y
X5
Y6
52
61
1B
57
BF
F5
52
57
7X
25
BF
Y6
61
1B
7X
25
BF
X5
F5
61
25
5Y
X5
Y6
F5
61
1B
5Y
X5
F5
2
1B
57
5Y
Y6
52
57
7X
BF
Y6
52
61
7X
25
BF
F5
61
7X
25
5Y
X5
F5
1
1B
5Y
5
Y6
F5
52
57
7X
1B
Y6
52
1B
7X
25
BF
Y6
F5
7X
5
5
Y6
F5
52
61
7X
25
F5
1B
7X
25
5Y
X5
F5
1B
5
Y6
F5
52
1B
57
7X
Y6
1B
7X
25
BF
6
F5
25
5Y
Y6
F5
61
1B
7X
X5
52
1B
25
5Y
6
F5
57
5Y
52
1B
7X
5Y
BF
52
7X
6
F5
52
61
X
5Y
F5
57
1B
5Y
52
57
1B
BF
52
7X
5Y
BF
Y6
61
X
F5
52
61
57
25
1B
7X
BF
X5
25
Y6
F5
61
57
X5
1B
25
BF
56109 Page 2 of 2
7
25
X5
Y6
F5
61
X5
57
1B
25
5Y
7
X5
Y6
F5
52
X525Y61BF57X525Y61BF57X525Y61BF57X525Y61BF57
57
1B
7X
25