You are on page 1of 1

Student Registration No

B
DCAP102: Basic Programming Skills
Date of Exam:- 14 Oct Session:- 1:30-4:30
Time Allowed : 3 hours Max. Marks: 80
1. This paper contains Ten questions divided in two parts on One page.
2. Part A is compulsory.
3. In Part B (Questions 2 to 10), attempt any 6 questions out of 9. Attempt all parts of the questions
chosen.
4. The marks assigned to each question are shown at the end of each question in square brackets.
5. Answer all questions in serial order.

Part A
Q.1 i Differentiate variable and constant. [2]
ii How can we do documentation in our source code? [2]
iii What are preprocessor directives? [2]
iv What is the purpose of backslash character constants? [2]
v Differentiate structures and arrays? [2]
vi Differentiate between compiler and interpreter? [2]
vii Differentiate while and do while loop. [2]
viii Write some features of C Language. [2]
ix Differentiate static and dynamic memory allocation. [2]
x What are the benefits of using pointers in C Language? [2]
Part B
Q.2 Explain various data types used in C Language with the help of examples. [10]

Q.3 Explain various Control Statements of C Language with proper syntax and [10]
examples.

Q.4 What do you mean by storage classes? Discuss various storage classes used [10]
in C Language with the help of an example

Q.5 Explain Relational, Logical, Increment-Decrement, Arithmetic, Assignment [10]


and Conditional Operators with proper syntax and example

Q.6 Demonstrate the use of Functions calling by values, by references, and [10]
returning values.

Q.7 Write down various file opening modes and functions of Disk Input/Output. [10]

Q.8 i Differentiate the terms “array of Pointers” and “pointers to an array” [05]
ii Demonstrate the use of Switch statement with the help of an example. [05]

Q.9 How will you store heterogeneous data as a record in C language? Explain [10]
the process of insertion, deletion and searching of heterogeneous data
without using files.

Q.10 Explain five each mathematical and string functions with proper syntax and [10]
example

You might also like