download Mastguru Android App

Question Detail

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

  • Classname Objectname;
  • Class Classname Objectname;
  • Class Classname Object Objectname;
  • Classname Object Objectname;
Similar Questions :

1. Enumerator will allocate the memory when its variables are defined.

  • True
  • False

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. Classes that can be used to instantiate objects are called concrete classes.

  • True
  • False

4. && means ?

  • Logical OR
  • Bitwise OR
  • Logical AND
  • Bitwise AND

5. What is object in C++ ?

  • Object is part of syntax of a class.
  • Object is datatype of a class.
  • Object is an instance of a class.
  • Object is function of a class.
Read more from - C++ Programming Questions Answers - Set 2
Post a comment