C++ MCQs with answers Page - 49

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) Parameterized constructor
  • (B) Default constructor
  • (C) Friend constructor
  • (D) Copy constructor

A

Admin • 833.24K Points
Coach

Q. Which of the following is not the member of class?

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

A

Admin • 833.24K Points
Coach

Q. Which of the following concepts means determining at runtime what method to invoke?

  • (A) Dynamic loading
  • (B) Dynamic binding
  • (C) Dynamic Typing
  • (D) Data hiding

A

Admin • 833.24K Points
Coach

Q. Which of the following provides a reuse mechanism?

  • (A) Encapsulation
  • (B) Dynamic binding
  • (C) Inheritance
  • (D) Abstraction

A

Admin • 833.24K Points
Coach

Q. Which of the following statement is correct?

  • (A) Object is an instance of data type.
  • (B) Class is an instance of data type.
  • (C) Object is an instance of a class.
  • (D) Class is an instance of object.

A

Admin • 833.24K Points
Coach

Q. Which of the following term is used for a function defined inside a class?

  • (A) Classic function
  • (B) Class function
  • (C) Member function
  • (D) Member Variable

A

Admin • 833.24K Points
Coach

Q. Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?

  • (A) Call by pointer
  • (B) Default arguments
  • (C) Call by reference
  • (D) Call by value

A

Admin • 833.24K Points
Coach

Q. How many instances of an abstract class can be created?

  • (A) 0
  • (B) 1
  • (C) 5
  • (D) 13

A

Admin • 833.24K Points
Coach

Q. Which of the following cannot be friend?

  • (A) Function
  • (B) Class
  • (C) Object
  • (D) Operator function

A

Admin • 833.24K Points
Coach

Q. Which of the following concepts of OOPS means exposing only necessary information to client?

  • (A) Data binding
  • (B) Data hiding
  • (C) Abstraction
  • (D) Encapsulation