download Mastguru Android App

Question Detail

What among following is a generic class ?

  • Function Template
  • Class Template
  • Inherited Template
  • None of above
Similar Questions :

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

2. The default visibility mode while inheriting is ?

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

3. A class having no public constructors is

  • A public protected class
  • A public class
  • A protected class
  • A private class

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

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

5. Inheritance is transitive in nature.

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