Est102 Programming in c, June 2023
Est102 Programming in c, June 2023
Reg No.:
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)
OR
14 (a) Explain any four types of operators used in C. (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)
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.
Page2of 2