FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :
   
FeedBack

C++ Constructors Questions and Answers

5. When an instance of a class comes into scope, the function that executed is ..........
 
  • A. constructor
  • B. destructor
  • C. friend
  • D. inline
 
6. When a class object goes out to scope, the fucntion that gets executed is ...........
 
  • A. constructor
  • B. destructor
  • C. friend
  • D. inline
 
 
7. How many destructors a class can have?
 
  • A. 4
  • B. 3
  • C. 2
  • D. 1
 
8. Which of the following do not return any value?
 
  • A. friend functions
  • B. inline fucntions
  • C. constructor and destructor
  • D. member function