Question Detail

In C++ Functions can returns ?

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

1. Constructors has return type void ?

  • True
  • False

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

  • virtual
  • public
  • static
  • private

3. << operator is ?

  • stream extraction operator
  • stream insertion operator
  • left shift operator
  • right shift operator

4. A variable is defined within a block in a body of a function. Which of the following are true ?

  • It is visible from the point of definition to the end of the program.
  • It is visible throughout the function.
  • It is visible from the point of definition to the end of the block.
  • It is visible throughout the block.

5. The members of a class are ?

b) by default are private
c) are made private by declaring as private
d) none of the above]

  • have no visibility by default
  • public by default
  • private by default
  • protected by default
Read more from - C++ Programming Questions Answers - Set 2