C++ Programming Quiz

Play this c++ quiz that will help you to excel in C++ certification exams, placements etc. This C++ programming quiz consist of 10 questions that you need to solve in 10 minutes. We’ve specially designed this quiz so that you can quickly acquaint to the pattern of questions you can be asked in placement drives, certification exams etc. This C++ programming test enables you to assess your knowledge of C++ programming.

Take the Free Practice Test

C++ MCQs

Practice C++ MCQ Questions, which will help you to understand C++ programming related concepts and also helps you to prepare for placements, technical rounds, interviews, competitive exams etc.

C++ Quiz

Try Free C++ Quiz, to start a quiz you need to login first, after login you will get start quiz button and then by clicking on that you can start quiz. You will get 10 Minutes to answer all questions.

C++ Quiz

1. + operator will do?

Multiplies both operands
Subtracts second operand from the first
Adds two operands
Increment operator

2. Which of the following is true?

The C++ interfaces are implemented using abstract classes
The purpose of an abstract class is to provide an appropriate base class from which other classes can inherit.
Abstract classes cannot be used to instantiate objects and serves only as an interface.
All of the above

3. If private member functions are to be declared in C++ then __________

private(private member list)
private :-

4. When are the Global objects destroyed?

When the control comes out of the block in which they are being used
When the program terminates
When the control comes out of the function in which they are being used.
As soon as local objects die

5. If a function receives a reference to a variable, can it modify the value of the variable?

We can not pass reference to a variable.
Reference can not contain function.

6. All arrays consist of __________ memory locations.

None of the above

7. bitset::hash() used for?

Convert hash value to unsigned long
Returns hash value based on the provided bitset.
Reports the size of the hash.
Reset hash value to zero.

8. Which value is placed in the base class?

Derived values
Default type values
Both default type & derived values
None of the above

9. How many objects reference can refer during its lifetime?


10. How are many minimum numbers of functions need to be presented in c++?