Question Detail

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.
Similar Questions :

1. Queues are based on ?

  • LIFO
  • FIFO
  • LILO
  • FILO

2. Data members and member functions are enclosed within ?

  • union
  • structure
  • class
  • array

3. Which operators can not be overloaded ?

  • Binary operator
  • Ternary operator
  • Unary operator
  • All can be overloaded

4. In C++ Functions can returns ?

  • arrays
  • reference
  • objects
  • all of above

5. The default visibility mode while inheriting is ?

  • public
  • protected
  • private
  • may be any of above
Read more from - C++ Programming Questions Answers - Set 2