C++ MCQ with Answers

  1. Who is the founder of C++?
  2. C++ was first introduced in which year?
  3. What was the original name given to C++?
  4. Which of the following sign is used for comments in C++?
  5. Which of the following function is used to read a single character from the console in C++?
  6. .......... is an abstract data type.
  7. Which of the following concept is used to implement late binding?
  8. What is the correct size of a boolean variable in C++?
  9. Which of the following loop is an exit-controlled loop?
  10. Which of the following is the other name of compile-time polymorphism?
  11. Std is a ........... in C++?
  12. Which of the following feature of the OOPS gives the concept of reusability?
  13. What is the default executable generation on UNIX for a C++ program?
  14. can we create objects of the abstract class?
C++  MCQ

C++ is an object-oriented programming language that is derived from C language. It is a high-level programming language that is used to program both hardware and software of computers. Its syntax matches with C programming language therefore it is also called the second version of C. It is powerful and has higher flexibility which is why most software programs are written in C++. Now it is one of the best choices for developers. Originally C++ was named C with Class.

Finally, Take the C++ MCQ Test, which is very helpful & important for the preparation of job interviews, exams, or placement drives.

  • Dennis Ritchie
  • Bjarne Stroustrup
  • Microsoft Corporation
  • Tim Berners-Lee
View Answer
  • C with classes
  • C Language
  • C Sharp
  • None of the above
View Answer
  • /* comment */
  • // comment
  • // comment */
  • Both A & B
View Answer
  • Constant functions
  • Operator functions
  • Virtual functions
  • Static functions
View Answer
  • Static polymorphism
  • Executing polymorphism
  • Dynamic polymorphism
  • Non-executing polymorphism
View Answer
  • standard namespace
  • standard class
  • standard header file
  • standard file reading header
View Answer
  • Inheritance
  • Abstraction
  • Encapsulation
  • None of the above
View Answer
  • Inheritance
  • Templates
  • Virtual Functions
  • None of the above
View Answer
  • User-defined data type
  • Basic data type
  • Class data type
  • None of the above
View Answer
  • Implicit specialization
  • Explicit specialization
  • Function overloading template
  • None of the above
View Answer
  • Records
  • Interface
  • Macro
  • None of the above
View Answer
  • Namespace,operator
  • Namespace#operator
  • Namespaceid::operator
  • None of the above
View Answer
  • Deleting a file
  • Writing to a file
  • Writing to memory
  • Reading from the network
View Answer
  • Character scope
  • Directional scope
  • Namespace scope
  • Both Namespace & Character scope
View Answer
  • Reliability
  • Portability
  • Sustainability
  • None of above
View Answer