APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : S1 and S2

Year : 2017

Term : MAY

Branch : BIOTECHNOLOGY

Scheme : 2015 Full Time

Course Code : CS 100

Page:2





PDF Text (Beta):

B2E3002 Pages: 2

PART B

Answer any 4 complete questions, each having 8 marks.

17. a) Write ೩ C program to compute the sum of first n terms of the series: 1 + ॐ + = +

ae (5)
b) What do you mean by typecasting? (3)
18.a) Discuss the difference between call by value and call by reference parameter
passing techniques with the help of suitable examples. (6)
b) Explain any two bit level operators with examples. (2)

19. a) Write a © program to perform selection sort on a set of numbers. The set of
numbers should be accessed using a pointer pointing to the first element. Do not use
an array to hold the numbers. (6)
b) What is the use of typedef construct in C? (2)

20. a) Write a C program to concatenate two strings without using any standard library
functions. (5)
b) Discuss the differences and similarities between a structure variable and a union
variable. (3)

21. a) Write a recursive function to perform binary search on a set of sorted numbers. (5)

b) How do you declare constants in C? (3)

PART C

Answer any two questions each having 14 marks.
22. a) Write a program to compute the product of two matrices. Use array of pointers to

access the matrices. (10)
b) Explain dangling else problem. (4)
23. a) Assume there are two files first.txt and second.txt. Write a C program to merge the
contents of two files into a new file third.txt. (10)
b) What is dynamic memory allocation? (4)

24. a) A student database stores following information about students in a class: Rollno,

name, gender, CGPA .Write a program to prepare a ranklist based on CGPA . Also

prepare a list of students having CGPA less than 7. (10)
b) Explain scope of a variable with suitable examples. (4)
೫ೇ ೫ ‏با‎

Page 2 of 2

Similar Question Papers