C-Programming Sessional Paper
C-Programming Sessional Paper
Mid-Term Examination
B.Tech- 1st Sem Feb- March 2022
Note: Q. No. 1 is compulsory. Attempt any two more question from the rest.
Q2. (a) Explain all the Storage classes. What is the difference between automatic and static
Storage class. (CO2) (5 marks)
(b) Write a program to print Fibonacci series up to n number using recursion.
(CO2) (5 marks)
Q3. (a) Differentiate between call by value and call by reference parameter passing mechanism
with the help of an example. (CO2) (5 marks)
(b) Compare = (single equal) and = = (double equal) operators. What is the output of following
program: (CO2)(5 marks)
int a=8, b=10,c;
C= a++ + b + a++;
Printf(“%d”,c);
C = ++ a + b + ++ c;
Printf(“%d”,c);
Q4. (a) Write a program to check given string is palindrome or not. (CO2) (5 marks)
(b) Explain all the data types of C language with example. (CO2) (5 marks)