You are on page 1of 2

JAYARAJ ANNAPACKIAM COLLEGE FOR WOMEN (AUTONOMOUS)

DEPARTMENT OF COMPUTER SCIENCE


DCA
C PROGRAMMING
Code: 20DCSCA02 Time:2.00PM-4.00PM Marks: 40
PART A
I. Answer the Following (Ten Questions). (10X1=10)
1.Who is the father of C language?
a) Steve Jobs b) James Gosling c) Dennis Ritchie d) Rasmus Lerdorf

2. Which of the following is not a valid C variable name?


a) int number; b) float rate; c) int variable count; d) int $main;
 
3. All keywords in C are in ____________
a) Lowercase letters b) UpperCase letters
c) CamelCase letters d) None of the mentioned

4.Which of the following is not an operator in C?


a), b) size of() c) ~ d) None of the mentioned

5. scan() is a predefined function in____header file.


a) stdlib. H b) ctype. H c) studio. H d) stdarg. H

6. Which one of the following is a loop construct that will always be executed once?

a) For b) while c) switch d) do while

7. A C Variable cannot start with___

a) A number b) A special symbol other than underscore c) Both of the above

d) An alphabet

8. Which is the only function all C program must Contain___

a) main() b) print () c) scan() d) start()

9.Which of the following is not a correct variable type___

a) Float b) int c) real d) double

10. Which one of the following cannot be a variable name in C.

a) volatile b) friend c) export d) true


PART B
II. Answer the following Questions ( 2X5=10)
11. a) Write about History of C.
OR
b) Describe about C tokens.
12. a) Define Operator Precedence in C.
OR

b) write a program for Fibonacci series.

PART C
III. Answer the following Questions (2X10=20)

13. Write about Arrays with one dimensional array &


two-dimensional array.
14. Write Overview of C.
15. Write a program for Factorial Calculation.

You might also like