C++ MCQs with answers Page - 75

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. The Runtime polymorphism is done using:

  • (A) User define function
  • (B) Function
  • (C) Virtual function
  • (D) object

A

Admin • 833.24K Points
Coach

Q. In Object-oriented programming, the problem is divided into _______

  • (A) structures
  • (B) modules
  • (C) functions
  • (D) classes & objects

A

Admin • 833.24K Points
Coach

Q. A class is a collection of ________ and _________

  • (A) data-members, member functions and main()
  • (B) data-members, member functions, main() and include statements
  • (C) data-members & member functions
  • (D) None of the above

A

Admin • 833.24K Points
Coach

Q. A class defined within another class in c++ is called

  • (A) nested class
  • (B) interface
  • (C) abstract class
  • (D) inheritance

A

Admin • 833.24K Points
Coach

Q. The major goal of inheritance in c++ is

  • (A) To hide the details of base class.
  • (B) To extend the capabilities of a class
  • (C) To help modular programming.
  • (D) To facilitate the conversion of data types.

A

Admin • 833.24K Points
Coach

Q. Mechanism of deriving a class from another derived class is known as_______

  • (A) Multilevel Inheritance
  • (B) Single Inheritance
  • (C) Polymorphism
  • (D) Abstract class

A

Admin • 833.24K Points
Coach

Q. Which of the following statements is NOT valid about operator overloading?

  • (A) Only existing operators can be overloaded
  • (B) Overloaded operator must have at least one operand of its class type
  • (C) The overloaded operators follow the syntax rules of the original operator
  • (D) none of the above

A

Admin • 833.24K Points
Coach

Q. Which of the statements is true in a protected derivation of a derived class from a base class?

  • (A) Private members of the base class become protected members of the derived class
  • (B) Protected members of the base class become public members of the derived class
  • (C) Public members of the base class become protected members of the derived class
  • (D) Protected derivation does not affect private and protected members of the derived class

A

Admin • 833.24K Points
Coach

Q. A class is made abstract by declaring at least one of its functions as?

  • (A) impure abstract function
  • (B) pure abstract function
  • (C) pure virtual function
  • (D) impure virtual function

A

Admin • 833.24K Points
Coach

Q. A pure virtual function is specified by placing?

  • (A) 0
  • (B) 1
  • (C) -1
  • (D) infinite

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