C Programming Question Paper
C Programming Question Paper
Q1
ples. (2.5x1O=25)
lable in C"
tinue statement in C?
n.
, Unit-I
(6.s)
Q2 (a) Explain looP statements in C. (6)
ifi wfi^t are different types of operators in C? Briefly explain'
Q3 (a) what is an [Irray? write a program to print average of all elements of art
(6.s1
array" (6)
1t1 Oinerentiate between while
and do-while loop constructs with example'
Unit-il
Q4 (a) with the help of a program,
r explain the concept of call by value and call by
(6'5)
reference" (6)
(b) Define the following terrns:
(i) Static Variables
(ii) Pointers
(iii) Dynamic Memory Allocation
any
Qs (a) Explain tJre concept - recursion by writing a program to find factorial of(6'51
--r- of
given number. .
(b) How ar.ray of pointer are passed as arguments in a function. Give
example'(6)
Unit-[I
UUIL-rrr ,.1J
from
Q6 (a) Explain the concept and need. of structures inic' How is union different
(6.s1
structure?
(b) what is file handling? what are various functions used in file handling?
(6)
Briefly explain"
into
Q7 what is file pointer? write a program i" c_tg create a file, write string data
it and count number of characteis in that file'
(12'5)
Unit-IV
Q8 (a) What is array of strings? Describe various string manipulation functions
(6.5)
:
wit1 example.
of functions in libraries
(b) what are standard libraries in c? Give examples
(61
stdio.h, math.h and string.h.
rr,--:1- +^ ff+cr anr{ fhcn r:nneatenate two strings entered by