Multiple Choice
Suppose you have written a program that inputs data from a file.If the input file does not exist when the program executes,then which option should you choose for handling the issue?
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.
Correct Answer:

Verified
Correct Answer:
Verified
Q1: The try block is followed by one
Q14: Which of the following statements creates a
Q16: If the operator new cannot allocate memory
Q16: If the operator new cannot allocate memory
Q24: The order of the catch blocks does
Q24: Which of the following options should you
Q26: To deal with logical errors in a
Q31: A catch block can have, at most,
Q34: The general syntax to rethrow an exception
Q36: When an exception occurs in a try