InterviewSolution
Saved Bookmarks
| 1. |
Pick out the correct answer.(a) Exceptions are not suitable for critical points in code(b) Exception are suitable for critical points in code(c) Exceptions are used when postconditions of a function cannot be satisfied(d) Throw block should be placed after try blockI got this question in an online quiz.This key question is from Grouping of Exceptions in portion Derived Classes, Templates & Exception Handling in C++ of C++ |
|
Answer» CORRECT answer is (a) Exceptions are not SUITABLE for critical points in code The explanation is: If there is many number of exceptions in the program means, We have to USE MULTIPLE catch STATEMENT and it is hard to keep track of the program. |
|