PROGRAMME MASTER OF COMPUTER APPLICATIONS (MCA)
SEMESTER I
COURSE CODE & NAME PROGRAMMING IN C DCA6110
Section A
Multiple Choice Questions (2 Marks each)
[Please answer all the questions]
1. Which of the following is not a valid C variable name?
a) int number;
b) float number;
c) int $main;
d) char c;
2. __________ is used in finding the location of the record with the given key value.
a) searching
b) traversing
c) sorting
d) deleting
3. Keywords are the ______ words of a programming language.
a) Fixed
b) Reserved
c) forbidded
d) revered
4. The conditional operator (?:) takes _____ operands.
a) 1
b) 2
c) 3
d) 4
5. We cannot have 2 or more recursive functions in a program.
a) TRUE
b) FALSE
6. What is the scope of an automatic variable?
a) Within the block it appears
b) Within the blocks of the block it appears
c) Until the end of program
d) Within the block it appears
7. Automatic variables are allocated space in the form of a __________
a) stack
b) queue
c) priority queue
d) random
8. Which of the following is a storage specifier?
a) enum
b) union
c) auto
d) volatile
9. Structure members need to be linked to the structure variables in order to make them
meaningful members
a) TRUE
b) FALSE
10. Which one of the following is correct syntax for opening a file.
a) FILE *fopen(const *filename, const char *mode)
b) FILE *fopen(const *filename)
c) FILE *open(const *filename, const char *mode)
d) FILE open(const*filename)
Section B
SHORT ANSWERS (5 Marks each)
[Please answer Any Four questions in a separate page answer sheet especially provided for this purpose]
1. Write a note on integer constants and Real constants.
2. What are bitwise operator?
3. What is recursion? Discuss with an example.
4. Discuss array of pointers.
5. Explain the concept of dynamic memory allocation.
6. Discuss the characteristics and building blocks of an Algorithm.
Section C
LONG ANSWERS (10 Marks each)
[Please answer Any Three questions in a separate page answer sheet especially provided for this purpose]
1. What are the major components of a C program?
2. What is the precedence of operators? How are expressions evaluated using the precedence?
3. What is the difference between function declaration and function definition?
4. How do you declare a pointer to a floating point quantity and a double precision quantity?
Illustrate it.
5. What is the difference between structures and Union?