Top 1000+ C Language MCQ Questions and Answers - 2

Question: 6

The C language allow arguments to be passed

(A) Only call by value

(B) Only call by reference

(C) Both call by value as well as call by reference

(D) None of the above

Ans: C

Both call by value as well as call by reference

Question: 7

Scope of the variable refers to

(A) Duration for which the variable retains a given value during program execution.

(B) Part of a program in which the variable can be recognized.

(C) Value of the variable.

(D) Data type of the variable.

Ans: B

Part of a program in which the variable can be recognized.

Question: 8

A bit field is a

(A) One or more adjacent bits within a word.

(B) Member of a structure can be passed as an argument.

(C) Pointer variable in a structure.

(D) None of above

Ans: A

One or more adjacent bits within a word.

Question: 9

Which of the following header file must be included in your property if you want to use graphics property?

(A) screen.h

(B) graphics.h

(C) graph.h

(D) stdio.h

Ans: B

graphics.h

Question: 10

Every string must be terminated by

(A) Linefeed character

(B) Null character

(C) Newline character

(D) Carriage return character

Ans: B

Null character

Related Questions