(Please Write your Roll No.
immediately) Roll No……………………………
Mid-Term Examination
B.Tech- 1st Sem Feb- March 2022
Paper Code: ES-101 Subject: Programming in ‘C’
Time: 1.5 hours Max. Marks: 30
Note: Q. No. 1 is compulsory. Attempt any two more question from the rest.
Q1. Write brief note on following:- (CO1) (2*5=10 marks)
(a.) High level Vs Low level language.
(b.) Algorithm Vs Flow chart.
(c.) Break Vs Continue statement.
(d.) Linker Vs Loader.
(e.) Formal Vs Actual Arguments.
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)