Roll No. .......................
Total Pages : 3
BCA/D-21 1234
PROGRAMMING WITH C
Paper-BCA-CTIS-102
Time : Three Hours] [Maximum Marks : 60
Note : Attempt five questions in all. Q. No. 1 is compulsory.
Attempt four more questions selecting one question from
each unit.
Compulsory Question
1. Answer the following questions in brief :
(a) What are constants in C? What are different types of
constants?
(b) Explain difference between 'break' and 'continue'
statements with examples.
(c) What is static storage class in C? Explain its use with
an example.
(d) How can you declare and initialize a string in C?
Explain with an example. (4×3=12)
UNIT-I
2. (a) What is data type? Explain basic data types in C with
examples. (6)
(b) What is identifier? Explain rules to coin identifier name.
(6)
1234/00/KD/893 [P.T.O.
3. Explain the following I/O functions with examples :
scan f(), gets() and getche(). (12)
UNIT-II
4. (a) List arithmetic operators. Explain hierarchy and
associativity rules of these operators. (6)
(b) What are logical operators in C? Explain their use with
examples. (6)
5. (a) What is for..loop? Explain jump rules for for..loop
with an example. (6)
(b) What is 'switch' statement in C? Explain its usage with
an example. (6)
UNIT-III
6. (a) What is function? How can you pass parameters to a
function by 'call by reference'? Explain. (6)
(b) What is 'auto' and 'extern' storage class? Explain scope
and life time of these storage classes. (6)
7. (a) How can you define and initialize two-dimensional
arrays in C? Explain with an example. (6)
(b) Write a program in C to find largest difference between
any two numbers among given N numbers. (6)
UNIT-IV
8. (a) How can you compare and concatenate two strings?
Explain with examples. (6)
(b) Distinguish between structure and union. (6)
1234/00/KD/893 2
9. (a) Define a structure for date. Create an array of date
structure. Read and write values of date. (6)
(b) Explain dynamic allocation and deallocation of memory
with suitable examples. (6)
1234/00/KD/893 3