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...

What is the data rate for OC-192?

What will be an ideal response?

Computer Science & Information Technology

Single-clicking a marker for a tab stop on the horizontal ruler opens the Tabs dialog box

Indicate whether the statement is true or false

Computer Science & Information Technology

What are the two names for dynamic IP addressing? (Choose two answers.)

A. Bootstrap Protocol (BOOTP) B. ipconfig C. Dynamic Host Configuration Protocol (DHCP) D. IPv4 E. Both A and C

Computer Science & Information Technology

_______________ defines what a person accessing data can do with it.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology