Question Detail

Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void
Similar Questions :

1. When a derived class inherits from many base classes, this process is known as ?

  • multiple inheritance
  • multilevel inheritance
  • default inheritance
  • multiplex inheritance

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

3. An explicitly defined destructor function

  • may be virtual
  • may not be virtual
  • will always be virtual
  • will never be virtual

4. Inheritance is referred to as

  • “is a” relationship
  • "have a" relationship
  • both of above
  • none of above

5. What is default visibility mode for members of classes in C++ ?

  • Private
  • Public
  • Protected
  • Depends
Read more from - C++ Programming Questions Answers - Set 2