download Mastguru Android App

Question Detail

What is default visibility mode for members of classes in C++ ?

  • Private
  • Public
  • Protected
  • Depends
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. Which of following valid option will not return a value in c++ ?

  • free
  • void
  • empty
  • null

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

  • True
  • False

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

  • Yes
  • No

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

  • virtual
  • public
  • static
  • private
Read more from - C++ Programming Questions Answers - Set 2
Post a comment