Question Detail

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.
Similar Questions :

1. Classes that can be used to instantiate objects are called concrete classes.

  • True
  • False

2. Data members and member functions are enclosed within ?

  • union
  • structure
  • class
  • array

3. What is true about Constructor ?

  • Its name is plural of class name.
  • Its name has * symbol before it.
  • Its name is same as of class name.
  • Its name has # symbol before it.

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. What is default scope for a structure ?

  • Private
  • Protected
  • Public
  • None of aobve
Read more from - C++ Programming Questions Answers - Set 2