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. Which of the following cannot be passed to a function ?

  • Array
  • Reference variable
  • Object
  • File

2. Enumerators are stored by the compiler in ?

  • string
  • integer
  • float
  • any of above

3. Data members and member functions are enclosed within ?

  • union
  • structure
  • class
  • array

4. An explicitly defined destructor function

  • may be virtual
  • may not be virtual
  • will always be virtual
  • will never be virtual

5. The major goal of inheritance in C++ is ?

  • To facilitate the reusability of code
  • To help modular programming
  • To facilitate the conversion of data types
  • To extend the capabilities of a class
Read more from - C++ Programming Questions Answers - Set 2
Post a comment