download Mastguru Android App

Question Detail

The objects can directly access ?

  • Public members
  • Private members
  • Both of above
  • None of above
Similar Questions :

1. 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

2. 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.

3. What among following is a generic class ?

  • Function Template
  • Class Template
  • Inherited Template
  • None of above

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

  • free
  • void
  • empty
  • null

5. Explicit call to a constructor means ?

  • Not providing the construction name at all
  • Is the shorthand method
  • Providing the constructor name explicitly to invoke it
  • Providing the constructor name implicitly to invoke it
Read more from - C++ Programming Questions Answers - Set 2
Post a comment