Home » C++ MCQ Questions with Answer

C++ MCQ Questions with Answer

Welcome to our C++ MCQ Questions with Answer blog post! If you’re preparing for a C++ coding interview or just want to brush up on your knowledge of the C++ programming language, this post is for you. We’ve compiled a list of multiple choice questions, or MCQs, covering a range of C++ concepts and topics. Each question includes a detailed answer to help you better understand the material. So whether you’re a beginner or an experienced C++ developer, there’s something for everyone in this post.

C++ MCQ Questions and Answers:

Below are the top multiple choice questions for the C++ programming language, which will test your knowledge and understanding of the various concepts and techniques used in this versatile and powerful language.

Q1. Who invented C++?

  1. Dennis Ritchie
  2. Ken Thompson
  3. Brian Kernighan
  4. Bjarne Stroustrup

4. Bjarne Stroustrup


Q2. What is C++?

  1. C++ is an object oriented programming language
  2. C++ is a procedural programming language
  3. C++ supports both procedural and object oriented programming language
  4. C++ is a functional programming language

3. C++ supports both procedural and object oriented programming language


Q3. Which function executes faster but requires more memory space?

  1. Inline function
  2. Regular function
  3. Void function
  4. Normal function

1. Inline function


Q4. variable declared above all blocks and functions has the ___________.

  1. Class scope
  2. Function scope
  3. Local scope
  4. Scope of a file

4. Scope of a file


Q5. What is the size of wchar_t in C++?

  1. Based on the number of bits in the system
  2. 2 or 4
  3. 4
  4. 2

1. Based on the number of bits in the system


Q6. Which is more effective while calling the C++ functions?

  1. Call by object
  2. Call by pointer
  3. Call by value
  4. Call by reference

4. Call by reference


Q7. Which of the following symbol is used to declare the preprocessor directives in C++?

  1. $
  2. ^
  3. #
  4. *

Q8. What is Inheritance in C++?

  1. Deriving new classes from existing classes
  2. Overloading of classes
  3. Classes with same names
  4. Wrapping of data into a single class

1. Deriving new classes from existing classes


Q9. What is the benefit of c++ input and output over c input and output?

  1. Both Type safety & Exception
  2. Sequence container
  3. Exception
  4. Type safety

4. Type safety


Q10. What is meant by a polymorphism in C++?

  1. class having only single form
  2. class having four forms
  3. class having many forms
  4. class having two forms

3. class having many forms


C++ MCQ Quiz and Online Test:

These C++ MCQ practice sets gives you the feeling of reality and a clue to the questions asked in the actual C++ related exams. When you solve these MCQ questions practically, you come across many difficulties that give you an opportunity to improve.

4.6/5 - (27 votes)
Scroll to Top