Question: Select the correct answer. (1) A(n) ____ is an occurrence of an undesirable situation that can be detected during program execution. a. crash b. exception

Select the correct answer.

(1) A(n) ____ is an occurrence of an undesirable situation that can be detected during program execution.

a. crash b. exception

c. misfire d. bug

(2) The function ____ can check whether an expression meets the required conditions; if the conditions are not met, it terminates the program.

a. check b. look

c. assert d. what

(3) When division by zero occurs and the problem is not addressed, the program crashes with an error message that is ____ dependent.

a. code b. computer

c. platform d. IDE

(4) To use the assert function in your program, you should include the statement ____ .

a. #include b. #include

c. #include d. #include

(5) The statements that may generate an exception are placed in a ____ block.

a. throw b. finally

c. try d. catch

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!