download Mastguru Android App

Question Detail

Only one copy of the class is inherited, when it is defined as ?

  • virtual
  • public
  • static
  • private
Similar Questions :

1. 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.

2. How we can access data members using objects ?

  • object@datamember
  • object*datamember
  • object->datamember
  • object.datamember

3. & operator is ?

  • address operator
  • indirection operator
  • logical and
  • logical or

4. Which among following is not a valid visibility mode in c++ program ?

  • Private
  • Public
  • Protected
  • Limited

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

  • True
  • False
Read more from - C++ Programming Questions Answers - Set 2
Post a comment