download Mastguru Android App

Question Detail

Inheritance is transitive in nature.

  • True
  • False
Similar Questions :

1. The default visibility mode while inheriting is ?

  • public
  • protected
  • private
  • may be any of above

2. Destructors are called ?

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

3. What is default scope for a structure ?

  • Private
  • Protected
  • Public
  • None of aobve

4. A variable is defined within a block in a body of a function. Which of the following are true ?

  • It is visible from the point of definition to the end of the program.
  • It is visible throughout the function.
  • It is visible from the point of definition to the end of the block.
  • It is visible throughout the block.

5. How we can access data members using objects ?

  • object@datamember
  • object*datamember
  • object->datamember
  • object.datamember
Read more from - C++ Programming Questions Answers - Set 2
Post a comment