Question Detail

Stacks are based on ?

  • FIFO
  • LIFO
  • FILO
  • All of above
Similar Questions :

1. The default visibility mode while inheriting is ?

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

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

3. Which among following is correct way of declaring object of a class ?

  • Classname Objectname;
  • Class Classname Objectname;
  • Class Classname Object Objectname;
  • Classname Object Objectname;

4. Enumerators are stored by the compiler in ?

  • string
  • integer
  • float
  • any of above

5. Constructors has return type void ?

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