C++ Basic Programming MCQ Questions and Answers - 2

Question: 6

____ is the assignment operator.

(A) ==

(B) =

(C) <

(D) >

Ans: B

=

Question: 7

____ is an entry controlled loop and is used when an action is to be repeated for a predetermined number of times.

(A) Break

(B) If

(C) Switch

(D) For

Ans: D

For

Question: 8

The operator ___ is the extraction or get from operator.

(A) >> 

(B) <<

(C) >

(D) +

Ans: A

>> 

Question: 9

____ is called as exit- check loop.

(A) Do

(B) For

(C) While

(D) Do while

Ans: D

Do while

Question: 10

Which of the following is the simplest of all the decision statements?

(A) If

(B) While

(C) Break

(D) Switch

Ans: A

If

Related Questions