download Mastguru Android App

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. The derived class constructor

  • never passes any values to base class constructor
  • can pass arguments only to one base class constructor function
  • is responsible for passing the entire test of arguments needed by base class constructors
  • none of above

2. << operator is ?

  • stream extraction operator
  • stream insertion operator
  • left shift operator
  • right shift operator

3. Constructors has return type void ?

  • True
  • False

4. 78. If new operator is used, then the constructor function is ?

  • Copy constructor
  • Default constructor
  • Static constructor
  • Dynamic constructor

5. Among following which will give the size of object or type ?

  • Calloc
  • Malloc
  • Sizeof
  • Realloc
Read more from - C++ Programming Questions Answers - Set 2
Post a comment