MCQsIntermediate MCQsConstructors and DestructorsConstructors and Destructors 1).What is a constructor in C++?1) A special member function used to initialize objects2) A function used to destroy objects3) A function with a return type4) None of the above 2).Which of the following is true about constructors?1) They have the same name as the class2) They have a return type3) They cannot be overloaded4) None of the above 3).What is a destructor in C++?1) A special member function used to destroy objects2) A function used to initialize objects3) A function with a return type4) None of the above 4).How many destructors can a class have?1) Only one2) Multiple3) None4) None of the above 5).Which of the following is true about destructors?1) They have the same name as the class but with a ~ prefix2) They can be overloaded3) They can have parameters4) None of the above 6).What happens if a class does not have a constructor?1) A default constructor is automatically provided2) The program will not compile3) Objects cannot be created4) None of the above 7).Which of the following is a valid constructor declaration?1) ClassName();2) ClassName(void);3) Both A and B4) None of the above 8).Can a constructor call another constructor in the same class?1) Yes, using constructor delegation2) No3) Only in derived classes4) None of the above 9).What is the purpose of a copy constructor?1) To create a new object as a copy of an existing object2) To destroy an object3) To handle memory allocation4) None of the above 10).When is a destructor automatically invoked?1) When an object goes out of scope2) When a new object is created3) When a constructor is called4) None of the above