You are on page 1of 2

Roll No. ...................... Total No.

of Questions : 13]

[Total No. of Pages : 02

Paper ID [A0502]
(Please fill this Paper ID in OMR Sheet)

MCA (102) (S05) (O) (Sem. - 1st) PROGRAMMING IN C Time : 03 Hours Maximum Marks : 75 Instruction to Candidates: 1) Section - A is Compulsory. 2) Attempt any Nine questions from Section - B. Section - A Q1) a) b) c) d) e) f) g) h) i) j) k) l) Differentiate between switch and nested if. Differentiate between call by value and call by reference. What is a constant? How it is declared and used? What are identifiers and keywords? Give example. What are multidimensional arrays? How they are accessed. How you can declare a structure variable? Give example. What are the operations, which are permissible on pointers? What is the difference between (*a)[] and int *a[]? How pointers are useful in variable passing? What are the advantages of union? Why bubble sort is so called? Which is better out of binary and linear searches and why? (15 2 = 30)

m) What is dynamic allocation? n) o) A-520 Name the function used to close the file. Discuss the modes used to open the text files in C.
P.T.O.

Section - B (9 5 = 45) Q2) Q3) Q4) Explain various data types of C with example. Discuss various storage class specifiers with examples. What is a string? Explain various functions used on strings with the help of a suitable example. Explain various looping statements of C with example. Why there is a strong relationship between arrays and pointers? Explain with example. What are the operations possible on pointers? Explain. Consider the following structure definition: Struct box{ char make[25]; Float length, breadth, height;}; Write a function that takes address of the box structure and returns its volume. Write a function illustrating function returning a pointer.

Q5) Q6)

Q7) Q8)

Q9)

Q10) What is the structure tag and what is its purpose? How is it different from structure variable? Q11) Write an algorithm for Selection sort and explain with example. Q12) How you can search an item from a one dimensional array using linear search? Write algorithm. Q13) Write a c program to copy a file to another.

kbkb

A-520

You might also like