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.
Correct Answer:
Verified
Q21: The class _ is designed to deal
Q22: In a sequence of try/catch blocks, the
Q23: All derived classes of the class exception
Q24: The logic_error and runtime_error classes are defined
Q25: To deal with logical errors in a
Q27: When an exception is thrown, if the
Q28: A(n) _ block specifies the type of
Q29: The class _ is designed to deal
Q30: Which of the following classes is derived
Q31: If you want to include members in
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents