Answer the following questions true (T) or false (F)
1. An uncaught exception in C++ is ignored.
2. If an exception is thrown in a function, say, f(), but not handled there, the exception is propagated to the function that called f().
1. False
Explanation: If an exception is thrown in C++ but not handled, the penalty is program termination.
2. True
Explanation: The exception is propagated up the call chain. The exception is handled by some function in the call chain, or the program terminates.
You might also like to view...
Match the following Windows features to their description
I. File Explorer II. Status bar III. Taskbar IV. Rename V. Subfolder A. Located at the bottom of the window B. Used to create and manage folders and files C. A folder within a folder D. Select a file and press F2 E. Horizontal bar at the bottom of screen
The while loop is known as a ____________, which means it tests its condition before performing each iteration.
a. post test loop b. pretest loop c. proactive loop d. preemptive loop