C Programming Objective Questions and Answers Pdf - 2

Question: 6

Which character is used to indicate the end of the string?

(A) Any alphabet

(B) A

(C) Null

(D) None of these

Ans: C

Null

Question: 7

Each element of a structure can be _____

(A) Read and printed as a separate data item

(B) Printed as a separate data item

(C) Read as a separate data item

(D) None of these

Ans: A

Read and printed as a separate data item

Question: 8

In the for loop structure, which statement is present?

(A) Assign statement

(B) Alter statement

(C) Both (a) and (b)

(D) None of these

Ans: C

Both (a) and (b)

Question: 9

When the computer is waiting for the input?

(A) Files are selected

(B) The cursor is blinking in the VDU screen

(C) Menu will appear on the screen

(D) None of these

Ans: B

The cursor is blinking in the VDU screen

Question: 10

Which can be included in a string constant using the escape sequences?

(A) Apostrophe (’)

(B) Question mark (?)

(C) Double quotes (“)

(D) All the above

Ans: D

All the above

Related Questions