Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

Q1.Who is known as the father of C Language ?

A. James A. Sosling
B. Vjarne Stroustrup
C. Dennis Ritchie
D. Dr. E. F. Codd

Answer:Option C

Q2.A C variable name can start with a ____

A. Number
B. Plus Sign (+)
C. Underscore
D. Asterisk (*)

Answer:Option C

Q4.Which one is not a reserve keyword in C Language?


A. auto
B. main
C. case
D. register

Answer:Option B

Q5.C Language was developed in the year ____


A. 1970
B. 1975
C. 1980
D. 1985

Answer:Option A

Q6.A pointer pointing to a memory location of the variable even after deletion of
the variavle is known as _____
A. far pointer
B. dangling pointer
C. null pointer
D. void pointer

Answer:Option B

Q7.An uninitialized pointer in C is called ___


A. Constructor
B. dangling pointer
C. Wild Pointer
D. Destructor

Answer:Option C

Q8.A pointer that is pointing to NOTHING is called ____


A. VOID Pointer
B. DANGLING Pointer
C. NULL Pointer
D. WILD Pointer

Answer:Option C
Q9.C was primarily developed as
A.System programming language
B.General purpose language
C.Data processing language
D.None of the above.

Answer:Option A

Q10.Use of Functions
A.Helps to avoid repeating a set of statements many times.
B.Enhances the logical clarity of the program.
C.Helps to avoid repeated programming across programs.
D.Makes the debugging task easier.
E.All of the above

Answer:Option E

Q11.When a function is recursively called all the automatic variables are stored in
a ......
A.Stack
B.Queue
C.Array
D.Linked list
E.Register

Answer:Option A

Q12.According to ANSI specifications which is the correct way of declaring main()


when it receives command line arguments?
A.main(int argc, char argv[])
B.main(argc, argv) int argc; char* argv[];
C.main() { int argc; char*argv[ ]; }
D.None of the above

Answer:Option A

Q13.An array elements are always stored in _________ memory locations.


A.Sequential
B.Random
C.Sequential and Random
D.None of above

Answer:Option A

Q14.The C language consists of ____ number of keywords.


A.32
B.40
C.24
D.56

Answer:Option A

Q15.What number will z in the sample code above contain?


int z,x=5,y=-10,a=4,b=2;
z = x++ - --y * b / a;
A.5
B.12
C.9
D.10
Answer:Option D

Q16.The C code �for(;;)� represents an infinite loop. It can be terminated by


___________
A.break
B.exit(0)
C.abort()
D.terminate

Answer:Option A

Q17.What will be the correct syntax for running two variable for loop
simultaneously?
A.for (i = 0; i < n; i++)
for (j = 0; j < n; j += 5)

B.for (i = 0, j = 0; i < n, j < n; i++, j += 5)

C.for (i = 0; i < n;i++){}


for (j = 0; j < n;j += 5){}
D.none of the mentioned

Answer:Otion B

Q18.

Answer:

Q19.

Answer:

Q20.

Answer:

You might also like