Home

C++ Programming MCQ - Multiple Choice Question and Answer

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

Download Objective type questions of C++ Programming PDF

Visit our PDF store

Question No : 8
A normal C++ operator that acts in a special way on newly defined data types is said to be

Glorified
Encapsulated
Classified
Overloaded

Question No : 9
main() returns a value of type

real
char
int
null

Question No : 10
Sharing of common information are achieved by the concept of

Virtual copying
Inheritance
Encapsulation
None of these

Question No : 11
In a for loop with a multi-statement loop body, semicolons should appear following

The for statement itself
The closing brace in a multi-statement loop body
Each statement within the loop body.
The test expression

Question No : 12
A variable defined within a block is visible

From the point of definition onwards in the program
From the point of definition onwards in the function
From the point of definition onwards in the block
Throughout the function

Question No : 13
The library function exit() causes an exit from

The loop in which it occurs
The block in which it occurs
The function in which it occurs
The program in which it occurs

Question No : 14
The getch() library function

Returns a character when any key is pressed
Returns a character when ENTER is pressed
Display a character on the screen when a key is pressed
Does not display a character on the screen