Q.1

Which of the following type of data member can be shared by all instances of its class?

  • Public
  • Inherited
  • Static
  • Friend
Q.2

Which of the following also known as an instance of a class?

  • Friend Functions
  • Object
  • Member Functions
  • Member Variables
Q.3

Constructor is executed when _____.

  • an object is created
  • an object is used
  • a class is declared
  • an object goes out of scope.
Q.4

Which of the following statements about virtual base classes is correct?

  • It is used to provide multiple inheritance.
  • It is used to avoid multiple copies of base class in derived class.
  • It is used to allow multiple copies of base class in a derived class.
  • It allows private members of the base class to be inherited in the derived class.
0 h : 0 m : 1 s