download Mastguru Android App

Question Detail

How we can define member function outside the class ?

  • Using union
  • Using structure
  • Using pointers
  • Using scope resolution
Similar Questions :

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

  • True
  • False

2. A virtual base class ?

  • is qualified as virtual in base class definition.
  • do not qualified as virtual in base class definition.
  • allows to inherit more than one copy of the base class members.
  • strict the path of inheritance.

3. Size of a char is ?

  • 1
  • 2
  • 3
  • 4

4. Which of following valid option will not return a value in c++ ?

  • free
  • void
  • empty
  • null

5. 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.
Read more from - C++ Programming Questions Answers - Set 2
Post a comment