refers to a circumstance in which commitments to a failing point of view or course of action are increased to justify investments in time and energy that have already been made. Select the correct answer. (1) The general syntax to rethrow an exception caught by a catch block is: ____
( in this case, the same exception is rethrown ) . a. rethrow; b. throw; c. rethrow exception; d. throw exception; (2) Suppose you have written a program that inputs data from a file. If the input file does not exist when the program executes, then you should choose which option? a. Terminate the program. b. Include code in the program to recover from the exception. c. Log the error and continue. d. Include code in the header file. (3) Which of the following options should you choose when an exception occurs in the program that analyzes an airline’s ticketing transactions? a. Terminate the program. b. Include code in the program to recover from the exception. c. Log the error and continue. d. Include code in the header file. (4) When an exception is thrown in a function, the function-call stack is ____ so that the exception can be caught in the next try/catch block. a. destroyed b. allocated c. unbound d. unwound (5) When an exception is thrown, if the program does not handle the exception, then the function ____ is called to terminate the program. a. log b. what c. terminate d. close