download Mastguru Android App

Question Detail

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

1. Which of the following keywords are used to control access to a class member ?

  • protected
  • switch
  • goto
  • for

2. The default visibility mode while inheriting is ?

  • public
  • protected
  • private
  • may be any of above

3. int *ptr[5];

  • a pointer of 5 int elements
  • an array of 5 int pointers
  • an array of 5 elements returning an int value
  • none of above

4. Which of following valid option will not return a value in c++ ?

  • free
  • void
  • empty
  • null

5. In C++ Functions can returns ?

  • arrays
  • reference
  • objects
  • all of above
Read more from - C++ Programming Questions Answers - Set 2
Post a comment