download Mastguru Android App

Question Detail

Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void
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. 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. The default visibility mode while inheriting is ?

  • public
  • protected
  • private
  • may be any of above

4. Inheritance is referred to as

  • “is a” relationship
  • "have a" relationship
  • both of above
  • none of above

5. Inheritance is transitive in nature.

  • True
  • False
Read more from - C++ Programming Questions Answers - Set 2
Post a comment