download Mastguru Android App

Question Detail

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

  • protected
  • switch
  • goto
  • for
Similar Questions :

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

  • True
  • False

2. The derived class constructor

  • never passes any values to base class constructor
  • can pass arguments only to one base class constructor function
  • is responsible for passing the entire test of arguments needed by base class constructors
  • none of above

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

4. C++ is a ?

  • Procedural programming language
  • Structural programming language
  • Low level language
  • Object oriented programming language

5. An explicitly defined destructor function

  • may be virtual
  • may not be virtual
  • will always be virtual
  • will never be virtual
Read more from - C++ Programming Questions Answers - Set 2
Post a comment