download Mastguru Android App

Question Detail

Which is more memory efficient ?

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

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

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

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

  • True
  • False

3. The objects can directly access ?

  • Public members
  • Private members
  • Both of above
  • None of above

4. The symbol ** __ .

  • can be overloaded by changing its datatype.
  • cannot be overloaded, as on overloading its meaning shall be changed.
  • can be overloaded.
  • cannot be overloaded as it is not a C++ operator.

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