download Mastguru Android App

Question Detail

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

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

  • outstream
  • stdin
  • iostream
  • None of above

2. What is the meaning of base class in C++

  • Another class got inherit from this class
  • It inherit other class
  • It has a pointer variable
  • It is the first class declared

3. Which among following has invalid syntax ?

  • #include
  • #include file
  • #include "file"
  • None of above

4. \r is used for

  • carriage return
  • new line
  • end of the line
  • vertical tab

5. What is the value of sizeof(char)

  • 1
  • 2
  • 4
  • 8
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment