Question Detail

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

  • Copy constructor
  • Default constructor
  • Static constructor
  • Dynamic constructor
Similar Questions :

1. What is purpose of abstract class ?

  • to provide help with database connectivity.
  • to provide data input to other classes.
  • to provide security to other classes.
  • to provide an appropriate base class from which other classes can inherit.

2. The symbol ** __ .

  • can be overloaded by changing its datatype.
  • cannot be overloaded, as on overloading its meaning shall be changed.
  • can be overloaded.
  • cannot be overloaded as it is not a C++ operator.

3. In C++ Functions can returns ?

  • arrays
  • reference
  • objects
  • all of above

4. Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void

5. 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
Read more from - C++ Programming Questions Answers - Set 2