Question Detail

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

  • free
  • void
  • empty
  • null
Similar Questions :

1. When one class inherits from the base class, then the original class is called ?

  • derived class
  • base class
  • sub class
  • basic class

2. Which is more memory efficient ?

  • structure
  • union
  • both use same memory
  • depends on a programmer

3. Can we define array of classes in c++ ?

  • Yes
  • No

4. Which among following is correct way of declaring object of a class ?

  • Classname Objectname;
  • Class Classname Objectname;
  • Class Classname Object Objectname;
  • Classname Object Objectname;

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