download Mastguru Android App

Question Detail

Which is more memory efficient ?

  • structure
  • union
  • both use same memory
  • depends on a programmer
Similar Questions :

1. How we can access data members using objects ?

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

2. Classes in c++ are ?

  • Fundamental data type
  • Primitive data type
  • Desired data type
  • Not defined

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

  • virtual
  • public
  • static
  • private

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

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

5. Inheritance is referred to as

  • “is a” relationship
  • "have a" relationship
  • both of above
  • none of above
Read more from - C++ Programming Questions Answers - Set 2
Post a comment