download Mastguru Android App

Question Detail

Which among following is not a valid visibility mode in c++ program ?

  • Private
  • Public
  • Protected
  • Limited
Similar Questions :

1. The private data members of a class are accessible ?

  • Directly to objects of that class
  • To any function defined outside a class
  • Only to the member functions
  • Only using keyword static

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

  • Private
  • Public
  • Protected
  • Depends

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. 37. Which of the following statements is false ?

  • Using typedef does not replace the standard C++ data type name with the new name
  • The new name defined by typedef, can be used as a type for another typedef
  • typedef defines new data types
  • None of the above

5. How we can access data members using objects ?

  • object@datamember
  • object*datamember
  • object->datamember
  • object.datamember
Read more from - C++ Programming Questions Answers - Set 2
Post a comment