download Mastguru Android App

Question Detail

What is default scope for a structure ?

  • Private
  • Protected
  • Public
  • None of aobve
Similar Questions :

1. Stacks are based on ?

  • FIFO
  • LIFO
  • FILO
  • All of above

2. Data members and member functions are enclosed within ?

  • union
  • structure
  • class
  • array

3. When one class inherits from the base class, then the original class is called ?

  • derived class
  • base class
  • sub class
  • basic class

4. Classes in c++ are ?

  • Fundamental data type
  • Primitive data type
  • Desired data type
  • Not defined

5. A variable is defined within a block in a body of a function. Which of the following are true ?

  • It is visible from the point of definition to the end of the program.
  • It is visible throughout the function.
  • It is visible from the point of definition to the end of the block.
  • It is visible throughout the block.
Read more from - C++ Programming Questions Answers - Set 2
Post a comment