C++ MCQs with answers Page - 123

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. To ensure that every object in the array receives a destructor call, always delete memory allocated as an array with operator __________ .

  • (A) destructor
  • (B) New[]
  • (C) delete[]
  • (D) Free()

A

Admin • 833.24K Points
Coach

Q. Which of the following statement is correct whenever an object goes out of scope?

  • (A) The default constructor of the object is called.
  • (B) The parameterized destructor is called.
  • (C) The default destructor of the object is called.
  • (D) None of the above.

A

Admin • 833.24K Points
Coach

Q. Which allows you to create a derived class that inherits properties from more than one base class?

  • (A) Multilevel inheritance
  • (B) Multiple inheritance
  • (C) Hybrid Inheritance
  • (D) Hierarchical Inheritanc

A

Admin • 833.24K Points
Coach

Q. Which feature in OOP allows reusing code?

  • (A) Polymorphism
  • (B) Inheritance
  • (C) Encapsulation
  • (D) Data hiding

A

Admin • 833.24K Points
Coach

Q. The mechanism of deriving a new class from another class

  • (A) Polymorphism
  • (B) Inheritance
  • (C) Encapsulation
  • (D) Data hiding

A

Admin • 833.24K Points
Coach

Q. A derived class with only one base class

  • (A) Multilevel inheritance
  • (B) Multiple inheritance
  • (C) Single inheritance
  • (D) Hierarchical Inheritance

A

Admin • 833.24K Points
Coach

Q. The mechanism of deriving one base class with more than one derived classes

  • (A) Multilevel inheritance
  • (B) Multiple inheritance
  • (C) Hybrid Inheritance
  • (D) Hierarchical Inheritance

A

Admin • 833.24K Points
Coach

Q. The duplication of inherited members due to the multiple paths can be avoided by making a common base class is called

  • (A) Abstract class
  • (B) Virtual base class
  • (C) Multiple inheritance
  • (D) Nesting of classes

A

Admin • 833.24K Points
Coach

Q. The class that is not used to create object

  • (A) Abstract class
  • (B) Virtual base class
  • (C) Multiple inheritance
  • (D) Nesting of classes

A

Admin • 833.24K Points
Coach

Q. The mechanism of giving special meaning to an operator

  • (A) Operator overloading
  • (B) Function overloading
  • (C) Constructor overloading
  • (D) Virtual function

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