+

C++ objective interview questions and answers

Which of the following type of class allows only one object of it to be created?

  • Virtual class
  • Abstract class
  • Singleton class
  • Friend class

Show Answer

Which of the following is not a type of constructor?

  • Copy constructor
  • Friend constructor
  • Default constructor
  • Parameterized constructor

Show Answer

Which of the following statements is correct?

  • Base class pointer cannot point to derived class.
  • Derived class pointer cannot point to base class.
  • Pointer to derived class cannot be created.
  • Pointer to base class cannot be created.

Show Answer

Which of the following is not the member of class?

  • Static function
  • Friend function
  • Const function
  • Virtual function

Show Answer

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

  • Data hiding
  • Dynamic Typing
  • Dynamic binding
  • Dynamic loading

Show Answer

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

  • Member Variable
  • Member function
  • Class function
  • Classic function

Show Answer

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

  • Call by value
  • Call by reference
  • Default arguments
  • Call by pointer

Show Answer

How many instances of an abstract class can be created?

  • 1
  • 5
  • 13
  • 0

Show Answer

Which of the following cannot be friend?

  • Function
  • Class
  • Object
  • Operator function

Show Answer

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

  • Encapsulation
  • Abstraction
  • Data hiding
  • Data binding

Show Answer