You are on page 1of 2

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

of Questions : 13]

[Total No. of Pages : 02

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

B.Sc.IT/DCA (102/103) (S05) (N) (Sem. - 1st) PROGRAMMING WITH C


Time : 03 Hours Maximum Marks : 75

Instruction to Candidates: 1) 2) Section - A is Compulsory. Attempt any Nine questions from Section - B. Section - A Q1) a) What are internal and external variables? b) Explain calloc(), malloc(), and realloc() functions? c) What is the difference between prefix and postfix increment? d) Differentiate between implicit and explicit conversion? e) What do you mean by procedural programming? f) What is the purpose of strcat() function? g) What are the main features of cget function? h) What is the use of continue and break statements? i) j) l) Define the terms keyword, identifiers and tokens? Differentiate between for and while loop. Give syntax of multi dimensional array. (15 2 = 30)

k) What are conditional operators? m) How will you convert the value of a character into ASCII? n) Enumerate about a cast operator? What function does it perform? o) Write the difference between signed and unsigned data types. B-7011
P.T.O.

Section - B (9 5 = 45) Q2) What is the difference between an array of pointers to objects and pointers to arrays of objects? Q3) Write a C program to construct a pay bill structure of an employee in an Organization. Q4) What is a conditional operator? Give its syntax and application with an example. Why the expressions in the conditional operator are called ternary? Q5) Write a program to calculate the total number of elements of a multidimensional array? Q6) Explain the differences between structures and unions. Q7) Write a program in C to add two matrices. Q8) What are the various control statements used in C? Give examples. Q9) Write a program in C to find whether the string is palindrome or not. Q10) Compare recursion with iteration. Also write a recursive program to find GCD of two numbers. Q11) Discuss in detail with examples differences between all the storage classes. Q12) What are functions? Compare call by value and call by reference with the help of program. Q13) What are preprocessor directives? Name two preprocessor directives. What are their purposes?

B-7011

You might also like