Question Detail

Classes in c++ are ?

  • Fundamental data type
  • Primitive data type
  • Desired data type
  • Not defined
Similar Questions :

1. A Variable __ of void type.

  • May be declared
  • Can be initialized
  • Cannot be intialized
  • Cannot be declared

2. When a structure refers to itself, it is known as ?

  • encapsulated structure
  • nested structure
  • recursive structure
  • self-referential structure

3. Explicit call to a constructor means ?

  • Not providing the construction name at all
  • Is the shorthand method
  • Providing the constructor name explicitly to invoke it
  • Providing the constructor name implicitly to invoke it

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

  • free
  • void
  • empty
  • null

5. How we can define member function outside the class ?

  • Using union
  • Using structure
  • Using pointers
  • Using scope resolution
Read more from - C++ Programming Questions Answers - Set 2