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. The pointer can point to any variable that is not declared with which of these?

Const
Volatile
Both A & B
Static

2. Which class is used to design the base class?

abstract class
derived class
base class
derived & base class

3. Which of the following operators cannot be overloaded?

.* (Pointer-to-member Operator )
:: (Scope Resolution Operator)
.* (Pointer-to-member Operator )
All of the above

4. Which of the following operator functions cannot be global, i.e., must be a member function.

new
delete
Converstion Operator
All of the above

5. Which of the following provides a reuse mechanism?

Abstraction
Inheritance
Dynamic binding
Encapsulation

6. Which of the following is not Arithmetic Operators?

++
--
**
%

7. Predict the output:

float x= 3.1496;
cout << setprecision(2) << x;

3.14
3.15
3
3.1

8. Which from the following is not a correct way to pass a pointer to a function?

Non-constant pointer to non-constant data
A non-constant pointer to constant data
A constant pointer to non-constant data
All of the above

9. A friend class can access ____________________ members of other class in which it is declared as friend.

private
protected
public
Both A and B

10. Which returns the number of elements present in the tuple?

tie
size
tuple_size
size_tuple

Results