C++ MCQs with answers Page - 120

Here, you will find a collection of MCQ questions on C++. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. Derived class is also known as

  • (A) Sub Class
  • (B) Small Class
  • (C) Big Class
  • (D) Noticeable Class

A

Admin • 833.24K Points
Coach

Q. Which of the following gets called when an object is being created?

  • (A) Constructor
  • (B) Virtual Function
  • (C) Destructors
  • (D) Main

A

Admin • 833.24K Points
Coach

Q. Destructor has a same name as the constructor and it is preceded by?

  • (A) !
  • (B) ?
  • (C) ~
  • (D) $

A

Admin • 833.24K Points
Coach

Q. Which of the following is used for comments in

  • (A) //comment
  • (B) /comment
  • (C) *comment
  • (D) ?comment

A

Admin • 833.24K Points
Coach

Q. What is used to read from the console in C++?

  • (A) cin
  • (B) scanf
  • (C) read
  • (D) getline

A

Admin • 833.24K Points
Coach

Q. What is used to write/display to the console in C++?

  • (A) printf
  • (B) cout
  • (C) write
  • (D) putline

A

Admin • 833.24K Points
Coach

Q. Which operator is used with cin ?

  • (A) >>
  • (B) <<
  • (C) >
  • (D) <

A

Admin • 833.24K Points
Coach

Q. Which operator is used with cout?

  • (A) >>
  • (B) <<
  • (C) >
  • (D) <

A

Admin • 833.24K Points
Coach

Q. Which feature of OOP indicates code reusability?

  • (A) Encapsulation
  • (B) Inheritance
  • (C) Abstraction
  • (D) Polymorphism

A

Admin • 833.24K Points
Coach

Q. Which feature can be implemented using

  • (A) Inheritance
  • (B) Abstraction
  • (C) Polymorphism
  • (D) Overloading

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ