--:--









Quiz for Basics of exception handling

Course: C++ Language | Subject: Unit 10 | Topic: Exception Handling



Logo

Q1: What keyword is used to throw an exception in C++?

Logo

Q2: Which block is used to handle exceptions?

Logo

Q3: What keyword defines a block of code to test for exceptions?

Logo

Q4: Which of the following is correct syntax to catch all exceptions?

Logo

Q5: What happens if an exception is not caught?

Logo

Q6: Can exceptions be thrown from constructors?

Logo

Q7: Which standard C++ header file is used for exceptions?

Logo

Q8: What type of function is used to clean up resources during exceptions?

Logo

Q9: How do you specify multiple catch blocks?

Logo

Q10: Can exceptions be nested?

Logo

Q11: What does a throw expression do?

Logo

Q12: What is an exception specification?

Logo

Q13: Which is the base class for all standard exceptions?

Logo

Q14: What is the role of the noexcept keyword?

Logo

Q15: What kind of exceptions should be thrown?

Logo

Q16: What does rethrowing an exception mean?

Logo

Q17: Is it possible to catch exceptions by reference?

Logo

Q18: What is stack unwinding?

Logo

Q19: Can destructors throw exceptions?

Are you ready to start test? Set your time limit