Roll No……
Total No. of
Questions: 09
Paper
ID [B0102]
MCA
(Sem.-1st)
PROGRAMMING
IN C (MCA-102)
Time: 3 Hrs. Max.
Marks: 60
Instruction to Candidates:
1.
Attempt any one question from each sections A, B, C & D.
2.
Section-E is Compulsory.
SECTION-A
1. What
do you mean by the terms algorithm and flowchart? Illustrate their use with the
help of suitable examples?
2. List
and explain different types of data types in C? Also differentiate between
signed and unsigned data types with reference to range of memory they occupy?
SECTION-B
3. What
are functions? Differentiate between call by value and call by reference with
the help of suitable examples?
4. Write
a C program to read the element of two 3 x 3 matrices and multiply two
matrices.
SECTION-C
5. Write
a function (using pointer parameters) that compares two integer arrays to see
whether they are identical. The function
returns 1 if they are identical 0 otherwise?
6. Differentiate
and compare the working of an array, structure and a union with the help of
suitable examples?
SECTION-D
7. Write
a program that compares two files and returns 0 if they are equal and 1 if they
are not.
8. What
do you mean by dynamic memory allocation? Explain the working of following
functions with the help of suitable examples:
·
Malloc( )
·
Calloc( )
·
Free( )
·
Realloc( )
SECTION-E
9.
(a) Differentiate between reserve
words and identifiers?
(b) What are enumerated data types?
(c) What is sorting?
(d) What is the role of header files?
(e) Explain global variable and local variable.
(f) What do you mean by conditional statements.
(g) What do you mean by prototype?
(h) List the various string operations?
(i) What is the role of return statement?
(j) What do you mean by recursion?
0 comments:
Post a Comment
North India Campus