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 : 36
Public data members can be accessed

Only from the base class itself
Both form the base class and from its derived classes
From the class which is friend of the base class
None of the above are correct

Question No : 37
When you overload an arithmetic assignment operator, the result

Goes in the object to the right of the operator
Goes in the object to the left of the operator
Goes in the object of which the operator is a member
Must be returned

Question No : 38
new operator is used

To dynamically allocate storage
To statically allocate storage
To allocate storage for a new variable
None of the above are correct

Question No : 39
Delete operator is used

To allocate storage
To deallocate storage
To delete variable name
None of the above are correct

Question No : 40
Class members are _______________ by default

Private
protected
public
None of the above are correct

Question No : 41
Friend function have access to the

private and protected members
public members only
private members only
None of the above are correct

Question No : 42
Inline functions_____________ call overload.

Increase
Reduce
None of the above are correct