
Day 35 Recap Questions
- What is the difference between an unscoped and a scoped enum?
- Why do we use exceptions?
- What keyword is used to generate an exception? What keyword indicates that the block of code may generate an exception? What keyword indicates what should be done in the case of an exception?
- In the case of multiple matching
catch blocks, which one catches the exception?
- How do you get the message associated with an exception?
- For each statement below, indicate whether it is true or false:
a. You can define your own customized exception class, derived from exception. (T or F)
b. Best practice is to arrange catch blocks from least to most specific type. (T or F)
c. C++ passes control to first catch block whose type equals or is a derived class of the thrown exception. (T or F)