download Mastguru Android App

Question Detail

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

  • Private
  • Public
  • Protected
  • Depends
Similar Questions :

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

  • True
  • False

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

3. Classes that can be used to instantiate objects are called concrete classes.

  • True
  • False

4. Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void

5. Stacks are based on ?

  • FIFO
  • LIFO
  • FILO
  • All of above
Read more from - C++ Programming Questions Answers - Set 2
Post a comment