Question 1
5 Points
Suppose the main function has no exception handlers and calls function A. Function A has exception handlers for exceptions of type
X and Y, and it calls function B. Function B has no exception handlers. If function B throws an exception of type Z, what happens?
A Control exits function B immediately and transfers to an exception handler in function A.
B The rest of the code in function B completes its execution, and then control transfers to an exception handler in function A.
C Control exits function B immediately and transfers to the main function.
D The program terminates immediately with an error message.