C Programing
C Programing
USN BESCK104E/BESCKE104
04
Introduction to ‘C’ Programming
7:
Time: 3 hrs. Max. Marks: 100
:5
Note: 1. Answer any FIVE full questions, choosing ONE full question from each module.
U
08
2. M : Marks , L: Bloom’s level , C: Course outcomes.
-B
Module – 1 M L C
3
Q.1 a. Explain the five generations of computers. 10 L2 CO1
U
02
b. What are input and output devices? Mention various input devices. Explain 10 L2 CO1
-B
keyboard and pointing input devices.
-2 OR
U
12
Q.2 a. Explain the four kinds of files associated with ‘C’ program. 6 L2 CO1
-B
b. Explain the structure of ‘C’ program with an example. 8 L2 CO2
5-
Module – 2
-B
Q.3 a. What are operators? Mention all ‘C’ operators. Explain: (i) Relational 9 L2 CO2
U
b. Write a ‘C’ program to find the largest of three numbers using nested – if.
am 6 L3 CO2
Explain switch statement with its syntax and programming example.
-B
c. 5 L2 CO2
OR
U
18
Q.4 a. Discuss for, while and do-while loops with their syntax and programming 9 L2 CO2
U
examples. -B
-B
5:
Module – 3
-B
09
Q.5 a. Define function. Give its syntax. With an example discuss function 6 L2 CO4
-B
b. Explain the parameter passing techniques supported by ‘C’ language with 6 L2 CO4
3
U
-B
example.
02
-B
Q.6 a. Discuss arrays with its syntax. Explain various ways of initializing one- 7 L2 CO3
BU
-B
b. Write a ‘C’ program to search a key element in the given sorted array using 10 L2 CO3
-1
binary-search technique.
05
c. 3 L2 CO4
Module – 4
Q.7 a. Write a ‘C’ program to find product of 2 matrices. 10 L2 CO3
U
b. Explain 2-dimensional arrays with its syntax. How 2-dimensional arrays are 10 L2 CO3
-B
characters.
-B
1 of 2
BU
BESCK104E/BESCKE104
am
Module – 5
Q.9 a. Write a ‘C’ program to implement string operations such as string length 8 L2 CO3
04
and string concatenation.
b. Explain any six string manipulation function. 6 L2 CO3
7:
c. What is a pointer? With an example, explain how pointers are declared and 6 L2 CO3
initialized.
:5
OR
U
08
Q.10 a. What is structure? Give its syntax. With an example, explain how structure 6 L2 CO3
-B
members are declared and initialized.
b. Write a ‘C’ program to implement a structure to read, write and compute 8 L3 CO5
3
average marks and the student scoring above and below average marks for
U
02
class of ‘N’ students.
-B
c. Write a note on stack and heap.
-2 6 L2 CO3
U
12
-B
5-
U
-0
-B
U
VT
am
-B
U
18
U
-B
-B
5:
U
:1
U
-B
09
-B
U
3
U
-B
02
-B
U
-2
BU
-B
2
-1
U
05
-B
U
-B
U
-B
U
-B
2 of 2
BU