Question Detail

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

  • protected
  • switch
  • goto
  • for
Similar Questions :

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

  • free
  • void
  • empty
  • null

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

  • True
  • False

3. What is default scope for a structure ?

  • Private
  • Protected
  • Public
  • None of aobve

4. Which operators can not be overloaded ?

  • Binary operator
  • Ternary operator
  • Unary operator
  • All can be overloaded

5. Destructors are called ?

  • not defined
  • in any order
  • in the reverse order of constructor calls
  • in the same order of constructor calls
Read more from - C++ Programming Questions Answers - Set 2