Home

C++ Programming MCQ Question with Answer

C++ Programming MCQ with detailed explanation for interview, entrance and competitive exams. Explanation are given for understanding.

Download C++ Programming MCQ Question Answer PDF

Question No : 15
_______ argument(s) are passed in case of binary overloaded operators.

Two
One
No
None of the above

Question No : 16
_______ argument(s) are passed in case of unary overloaded operators.

Two
One
No
None of the above

Question No : 17
The && and || operators

Compare two numeric values
Combine two numeric values
Compare two Boolean values
Combine two Boolean values

Question No : 18
The break statement causes an exit

Only from the innermost loop
Only from the innermost switch
From all loops and switch
Only from the innermost loops or switch

Question No : 19
When accessing a structure member, the identifier to the left of the dot operator is the name of

Structure member
Structure tag
Structure variable
The keyword struct.

Question No : 20
cc ___________ option is used only to create object file

-a
-o
-c
none of these

Question No : 21
:: is known as

scope resolution operator
global operator
Both (a) & (b)
None of these