download Mastguru Android App

Question Detail

Every class has atleast one construtor

  • True
  • False
Similar Questions :

1. Constructor is

  • A class automatically called whenever a new object of this class is created
  • A class automatically called whenever a new object of this class is destroyed
  • A function automatically called whenever a new object of this class is created
  • A function automatically called whenever a new object of this class is destroyed

2. How to define a destructor

  • X~() {}
  • X() {}~
  • X() ~{}
  • ~X() {}

3. Every class has atleast one construtor

  • True
  • False

4. Difference between static and dynamic memory allocation is

  • In static memory allocation memory to be allocated in preknown
  • In dynamic memory allocation memory to be allocated in preknown
  • There is no differnece
  • Not exact difference is mentioned

5. cout is declared in the _____ standard file within the std namespace

  • outstream
  • stdin
  • iostream
  • None of above
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment

  • Buff 11 years ago

    I had no idea how to appoarch this before-now I'm locked and loaded.