Question: 1. any error condition or unexpected behavior in a executing program is known as an a. exception b. anomaly c. exclusion d. omission 2. most

1. any error condition or unexpected behavior in a executing program is known as an a. exception b. anomaly c. exclusion d. omission 2. most exceptions you will use derive from three classes a. object, objectExecption, and objectApplicationExecption b. exception, systemException, and ApplicationExecption c. FormatExecption, ApplicationExecption, and IOException d. SystemException, IOEException, and FormatExecption 3. when a program creates an Exception object, you a. must handle it b. can handle it c. must not handle it d. none of these, programs cannot great exceptions. 4. in object-oriented terminology, you ______ a procedure that may not complete correctly. a. circumvent b. attempt c. catch d. try 5. when you write a block code in which something can go wrong, and you want to throw and exception if it does, you place the code in a ______ a. catch b. blind c. system d. try 6. which of the following catch blocks will catch and Exception object? a. catch(Any e) {} b. catch(Exception e) {} c. catch(e) {} d. all of the following will catch and Exception 7. you can place_______ statements within a try block a. zero b. one c. two d. any number of 8. consider the following try block. if x is 15, what is the value of a when this code completes? try { a = 99; if (x > 10) throw(new Exception ()) ; a = 0; ++a; a. 0 b. 1 c. 99 d. undefined 9. consider the following catch blocks. this variable c has been initialized to 0. if an IndexOutOfRangeException occurs in a try block just before this catch block, what is the value of c when this code completes? catch (InsexOutOfRangeException e) { ++c; } catch(Exception e) { ++c; } finally { ++c ; } a. 0 b. 1 c. 2 d. 3 10. when you design your own classes that might cause exceptions, and other classes will use your classes as clients, you should usually create your method to a. neither throw noe handle exceptions b. throw exceptions but not handle them c. handle exceptions but not throw them d. both throw and handle exceptions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!