The exception facility should be used when

a) Some resource is unavailable to the compiler
b) A program encounters an error and cannot recover, but needs to shut down gracefully, perhaps saving work..
c) A program requests a resource that is not available.
d) Array index value is out-of-bounds
e) A programmer calls the wrong function
f) A division by zero occurs
g) There is a compiler detected error
h) A call to operator new fails to allocate memory from free store
i) An arithmetic error occurs

All are correct except parts a). e) and g)

Part a) is a compiler problem that has nothing to do with the program. Part e) is a logic error that the exception facility cannot help. Part g) is like part a).
Part b) is typical of a severe failure managed by exceptions. Part h) is an examples of part c). Part f) is a example of i).

Computer Science & Information Technology

You might also like to view...

Examples of _________ are the rational numbers, the real numbers, and the complex numbers.

A) ?rings ? B) ?orders ? C) ?fields D) ?groups

Computer Science & Information Technology

Which of the following is a logical container that groups together collections of objects within a database and allows them to be managed as a group?

A. filegroup B. data file C. transaction D. schema

Computer Science & Information Technology