F 0100EsT102042307
Reg No.:
APJ ABDUL KALAM TECHNOLOGICAL
Second Semester B.Tech Degree Regular and Supplementary Examination June
Course Code: EST 102
Course Name: PROGRAMMING IN C (Common to all programs)
Max. Marks: 100 Duration:3 Hours
PART A
Answer all Questions. Each question carries 3 Marks Marks
I Differentiate among compiler, interpreter and assembler. (3)
2 what is a flowchart? Draw the flow chart to check whether the given number (3)
is positive or negative.
J Write the difference between 'while' and 'do -while, statemenrs. (3)
4 Explain various formatted I/O statements in C. (3)
5 What are the different ways of declaring and initialising a single dimensional (3)
anay?
6 write a c program to check whether the given number is Armstrong or not. (3)
(A number is Armstrong if the sum of the cubes of the digits equals to the
number)
Define function prototype. Why is it used? Diflerentiate formal and actual (3)
parameters.
8 examples. (3)
Mention the difference between structure and union using suitable
,9 what is meant by the scale factor of a pointer variable? Explain using (3)
examples.
l0 List out the various modes of opening a fi!5$n C language. '(3)
PART B
Answer any one Question from each module. Each question carries 14 Marks
I I a) Write the algorithm and draw the flow chart to calculate the roots of a (10)
quadratic equation, take the coefficients as inputs.
b) ' Differentiate between system Software and application software. (4)
OR
l2 a) Explain bubble sort algorithm with an example. (10)
b) Explain differenttypes of memories used in a computer. (4)
Page 1 of 2
l-
01008STr02042307
13 a) Write a menu driven program to find the area of square, triangle, circle and (10)
rectangle according tothe choice given.
(b) Differentiate between break and continue statements using an example. (4)
OR
14 (a) Explain any four types of operators used in C. (7)
(b) Write a program to generate the following pattern
I
t2 (7)
123
1234
15 a) Implement string concatenation without using built in functions. (8)
b) Write a C program to accept a 2-D integer matrix and check whether it is (6)
symmetric or not ( A matrix'A' is symmetric if A:Ar).
OR
16 a) Explain any four string handling functions used in C using example. Write the (6)
syntax also.
b) Write a program to print the product of two matrices. (8)
l7 a) Explain different storage classes used in C by providing suitable examples. (8)
b) What is meant by recursion? Write a program to find the factorial of a number
using recursion. (6)
OR
18 a) Implement linear search using function. Reading the inputs and printing the (10)
result must be done in the main function.
b) Compare User defined functions with library functions. (4)
19 a) Write a program to read and store the details (the name, employee code (14)
(integer) and salary) of 'n' employeefin a company into a file using structure.
Print the details of the employee whose employee code is given as input.
OR
20 a) What is meant by passing arguments into a function by reference? Write a (8)
program to swap two numbers using pass by reference.
b) Write a program to copy the content of a file to another. (6)
****
Page2of 2