MCQsAdvanced MCQsException HandlingException Handling 1).What is the purpose of exception handling in C++?1) To handle errors2) To make code more readable3) To optimize performance4) None of the above 2).Which of the following keywords is used to throw an exception?1) throw2) catch3) try4) exception 3).What is the keyword used to handle an exception?1) catch2) try3) throw4) exception 4).Which of the following is the correct syntax for handling exceptions?1) try { // code } catch(exception e) { // code }2) catch(exception e) { // code } try { // code }3) try catch { // code }4) None of the above 5).Can a C++ function throw multiple exceptions?1) Yes2) No3) Only for different types4) Only in specific cases 6).What happens when an exception is not caught?1) Program terminates2) Exception is ignored3) A default exception handler is invoked4) None of the above 7).What is a standard exception in C++?1) An exception that is defined in the C++ standard library2) A user-defined exception3) An exception that is raised by the compiler4) None of the above 8).What does the 'throw' keyword do?1) Throws an exception2) Catches an exception3) Terminates the program4) None of the above 9).Which class is the base class for all exceptions in C++?1) std::exception2) std::runtime_error3) std::error4) None of the above 10).What is a 'catch' block used for?1) To handle exceptions2) To throw exceptions3) To define exception types4) None of the above