download Mastguru Android App

Question Detail

In C++ Functions can returns ?

  • arrays
  • reference
  • objects
  • all of above
Similar Questions :

1. Size of a char is ?

  • 1
  • 2
  • 3
  • 4

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

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

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

  • Yes
  • No

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

  • True
  • False

5. An explicitly defined destructor function

  • may be virtual
  • may not be virtual
  • will always be virtual
  • will never be virtual
Read more from - C++ Programming Questions Answers - Set 2
Post a comment