EST102-QP-FN - July 2021
EST102-QP-FN - July 2021
EST102-QP-FN - July 2021
Page 1 of 2
OR
14 a) Write a C program to find the sum of first and last digit of a number. (7)
b) What is type casting? Name the inbuilt typecasting functions available in C (7)
language. What is the difference between type casting and type conversion?
15 a) Write a C program to perform linear search on an array of numbers. (7)
b) Write a C program to reverse a string without using string handling functions. (7)
OR
16 a) Write a C program to find the transpose of a matrix. (7)
b) Write a C program to print number of vowels and consonants in a string. (7)
17 a) What is the purpose of function declaration and function definition and function (7)
call? With examples illustrate their syntax.
b) Write a C program to : (7)
(i) Create a structure containing containing the fields: Name, Price,
Quantity, Total Amount.
(ii) Use separate functions to read and print the data
OR
18 a) What are different storage classes in C? Give examples for each. (7)
b) Write a C program to find sum and average of an array of integers using user (7)
defined functions.
19 a) Explain the different modes of operations performed on a file in C language. (7)
b) Write a program in C to copy the contents of one file into another. (7)
OR
20 a) Explain how pointers can be passed to functions in C. (7)
b) Explain any 5 file handling functions in C? (7)
****
Page 2 of 2