C++ MCQs with answers Page - 121

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. Which of the following is not a type of Constructor?

  • (A) Friend constructor
  • (B) Copy constructor
  • (C) Default
  • (D) Parameterized

A

Admin • 833.24K Points
Coach

Q. What is the other name used for functions inside a

  • (A) Member variables
  • (B) Member functions
  • (C) Class functions
  • (D) Class variables

A

Admin • 833.24K Points
Coach

Q. Which among the following can restrict class members to get inherited?

  • (A) Private
  • (B) Protected
  • (C) Public
  • (D) All three

A

Admin • 833.24K Points
Coach

Q. Which type of members can’t be accessed in derived classes of a base class?

  • (A) Protected
  • (B) Private
  • (C) Public
  • (D) All can be accessed

A

Admin • 833.24K Points
Coach

Q. Which of the following is true?

  • (A) All objects of a class share all data members of class
  • (B) Objects of a class do not share non-static members. Every object has its own copy
  • (C) Objects of a class do not share codes of non-static
  • (D) None of these

A

Admin • 833.24K Points
Coach

Q. Which among the following is not true for polymorphism?

  • (A) It is feature of OOP
  • (B) Ease in readability of program
  • (C) Helps in redefining the
  • (D) Increases overhead of function

A

Admin • 833.24K Points
Coach

Q. If different properties and functions of a real world entity is grouped or embedded into a single element, what is it called in OOP language?

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

A

Admin • 833.24K Points
Coach

Q. If same message is passed to objects of several different classes and all of those can respond in a different way, what is this feature called?

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

A

Admin • 833.24K Points
Coach

Q. Out of the following, which is not a member of the

  • (A) Static function
  • (B) Friend function
  • (C) Const function
  • (D) Virtual function

A

Admin • 833.24K Points
Coach

Q. Which of the following is an abstract data type?

  • (A) int
  • (B) float
  • (C) class
  • (D) string

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