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)
Explanation: 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).
You might also like to view...
The ________ command enables you to control the type of editing that can be made to a document
A) Mark as Final B) Encrypt with Password C) Restrict Editing D) Add a Digital Signature
All of the following statements are TRUE about VBA procedures EXCEPT:
A) Function procedures are often used to create custom functions that can be entered in worksheet cells. B) You can have zero or hundreds of Sub procedures and functions written within a single module. C) If a Sub procedure is to run when a workbook opens or a worksheet becomes active, then it is typically stored in the workbook or worksheet object to take advantage of the Procedure menu at the top of the Code window. D) Three primary types of procedures are supported by VBA.