APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : MCA

Semester : SEMESTER 1

Year : 2016

Term : DECEMBER

Branch : MCA

Scheme : 2016 Full Time

Course Code : RLMCA 101

Page:3





PDF Text (Beta):

14.

15.

16.

17.

18.

19.

20.

C1A002 Total No. of Pages:3

Explain Recursion. Discuss its merits. Write a C program using recursive function to find
the GCD of 2 numbers
MODULE - IV
Write a program to define a union and a structure both having exactly the same members.
Using the size of operator, print the size of the structure variable as well as the union
variable and comment on the result.
OR
Define a structure to store the name, an array marks[ | which stores the marks of three
subjects and a character grade of 10 students. Write a program to display the details of the
student who have secured less than 40% of aggregate. Also print the average marks of the
student whose name is entered by the user.
MODULE -V
8. What is an array of pointers? How is it different from a pointer to an array? (3)
b. Write a program to compare two arrays using pointers. (3)
OR
With the help of an example, explain how pointers can be used to dynamically allocate
space for 2D and 3D array.
MODULE - VI
Write a program to count the number of characters and number of lines in a file, whose file
name should be entered through command line.
OR
Describe using suitable examples the three logical bitwise operators. What is the purpose of

each?

Page 3 of 3

Similar Question Papers