Question
1. Exception handling is used to _____. 2. C++ signals an error or unusual situation by _____. 3. A throw statement passes which type of
1. Exception handling is used to _____. 2. C++ signals an error or unusual situation by _____. 3. A throw statement passes which type of value to the catch block? 4. The catch block is also known as the _____. 5. If no exception is thrown, then the _____ is ignored. 6. The catch block- catch(...) is also known as _____. 7. If a function throws an exception and does not catch it, then the function definition and declaration should have _____. 8. If a thrown list has multiple exceptions listed, they are separated by _____. 9. If a function does not have an exception specification, then the function can thaw _____ exceptions. 10. Can the following function throw any unhandled exception? void f1() _____ 11. If the following function throws an unhandled exception, what happens? void f1() _____ 12. If the following function throws an unhandled exception, what happens? void f1() throws() _____ 13. If a function throw list specifies a base class type, then the function may also throw an exception of the _____ class type. 14. If some part of your program (or any library functions that are called) throw an exception, then if this exception is not handled in your code, your program will _____. 15. The following catch block catches all _____exceptions. catch (string e){ }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started