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. Which keyword is used to represent a friend function?

friend
Friend
friend_func
Friend_func

2. From where does the template class derived?

Regular non-templated C++ class
Templated class
Both A or B
None of the above

3. Can we have overloading of the function templates?

Yes
No
May Be
Can't Say

4. How many can max number of arguments present in function in the c99 compiler?

99
90
102
127

5. In nested try block, if inner catch handler gets executed, then __________?

Program execution stops immediately.
Outer catch handler will also get executed.
Compiler will jump to the outer catch handler and then executes remaining executable statements of main().
Compiler will execute remaining executable statements of outer try block and then the main().

6. What is true about bitset?

A bitset is an array of bool 
A limitation of bitset is, N must be known at compile time
As bitset stores the same information in compressed manner the operation on bitset are faster than that of array and vector.
All of the above

7. Which of the following is correct option?

lets(int) called
lets(lfc 2) called
Compiler Error: Ambiguous call to lets()
No error and No output

8. Which of the following is the correct way of declaring a tuple?

tuple tp;
tuple tp = new tuple;
tuple tp;
Tuple tp;

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

0
1
2
3

10. Which of the following function / types of function cannot have default parameters?

Member function of class
Main()
Member function of structure
Both B and C

Results