Question: 1. Best practice is to capture generic exceptions. True False 2. When code is found in all blocks of the try / catch / finally

1. Best practice is to capture generic exceptions.

True
False

2. When code is found in all blocks of the try / catch / finally construct, _____.

the finally block never executes
all catch clauses execute
the finally block always executes
if there are no errors, only the try statement executes

3. When a program experiences an error that it is unable to recover from, it ____..

elevates the priority level of the program
locks up the computer
terminates immediately
throws an exception

4. The debugger allows you to break into your code and examine the current state of variables.

True
False

5. The code you want to always execute, whether an exception is thrown or not, is placed in the ____ block.

try
catch
finally
if

6. If a program experiences an unhandled exception, the program terminates.

True
False

7. All exceptions inherit from the base ____ class.

SystemException
Exception
ApplicationException
BaseException

8. Run-time errors are typically easy to fix.

True
False

9. Using the debugger built into Visual Studio allows you to place a marker that causes the code to pause execution. This is ____ .

an event
a breakpoint
a watch
an exception

10. The two types of errors are compile and run-time errors.

True
False

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!