You Scored:
Ranking:
Past Papers C++ MCQs With Solved Questions Answers
1. Which of the following is true?
1
.1
All of the above (Answer)
-1
66
2. What punctuation is used to signal the beginning and end of code blocks?
( and )
BEGIN and END
{ } (Answer)
-> and <-
3. What will you use if you are not intended to get a return value?
Void (Answer)
Static
Const
Volatile
4. The switch statement is also called as?
None of them
Choosing structure
Certain structure
Selective structure (Answer)
5. Which operator is having right to left associativity in the following?
Type cast (Answer)
Array subscripting
Function call
Addition and subtraction
6. The if..else statement can be replaced by which operator?
Bitwise operator
Multiplicative operator
None of the mentioned
Conditional operator (Answer)
7. What is the use of dynamic-cast operator?
It will convert the operator based on precedence
It converts virtual base class to derived class (Answer)
None of the mentioned
It converts virtual base object to derived objeccts
8. How many types of returning values are present in c++?
2
5
4
3 (Answer)
9. Which operator is having the highest precedence?
Equality
Postfix (Answer)
Unary
Shift
10. Which of the following is the correct operator to compare two variables?
=
:=
equal
== (Answer)