Chapter 14 Quiz - Exceptions

Question Answer
Any code in a try block that comes after an exception is thrown will not execute. True
The order in which you code for exceptions to be caught after a try block does not matter. False
To use the standard exceptions already defined, you should include which file? <stdexcept> (most expected answer)
To create your own exceptions, you need to include which file? <exception>
It is bad programming practice to define new exceptions that do not inherit from the base class exception. True
When defining your own exception, which method must be overridden? what()
The keyword noexcept means that the method being defined does not catch exceptions. False
When an exception is thrown, it must be caught immediately by the function that called it. False
An exception can be caught and then re-thrown. True
It is good programming practice to use standard exceptions with informative text. True