BSC 1 Sem Cs Programming in C 20321 e Nov 2021
BSC 1 Sem Cs Programming in C 20321 e Nov 2021
First Semester
PROGRAMMING IN C
(a) 31 (b) 32
(c) 64 (d) 63
2. What is the output of this statement?
printf(―%d‖, printf(―hello‖));
(a) syntax error (b) hello5
(c) garbage value (d) hello
9. FILE is a type of
(a) int (b) char*
(c) struct (d) none of the above
Or
(b) Write C program for following :
(i) odd or even
(ii) to check leap year or not.
Or
(b) Write C program for Fibonacci series.
Or
(b) Explain any five string operations in C.
Or
(b) Explain structure with example.
Or
(b) Distinguish between sequential and random –
access file.
PART C — (5 8 = 40 marks)
Or
(b) Describe in detail about pre-processor
directive.
Or
(b) Write C program for the following :
(i) palindrome or not
(ii) gcd of given number.
Or
(b) Explain multidimensional array with an
example program.
Or
(b) Define function and how to define a function
in C.
Or
(b) Discuss in detail about various file operations.
———————