download Mastguru Android App

Question Detail

Destructors are called ?

  • not defined
  • in any order
  • in the reverse order of constructor calls
  • in the same order of constructor calls
Similar Questions :

1. Even if we define a function in a class, then also we need to declare it first.

  • True
  • False

2. Which of the following keywords are used to control access to a class member ?

  • protected
  • switch
  • goto
  • for

3. The major goal of inheritance in C++ is ?

  • To facilitate the reusability of code
  • To help modular programming
  • To facilitate the conversion of data types
  • To extend the capabilities of a class

4. Which of the following cannot be passed to a function ?

  • Array
  • Reference variable
  • Object
  • File

5. The process of deriving a class from another derived class is known as ?

  • single inheritance
  • dual inheritance
  • multiple inheritance
  • multilevel inheritance
Read more from - C++ Programming Questions Answers - Set 2
Post a comment