c# Season 2 chapter 10 part 4
Calls to the ToString( ) method emphasize the use of ____.
polymorphism
Determining which method to call at runtime based on which object invokes the method describes ____.
dynamic binding
If a program encounters an error that it cannot recover from, it raises or ____.
throws an exception.
When the CLR handles the exception by halting the application, ____.
an unhandled exception is reported.
Bugs are normally labeled as ____.
programmer mistakes
A listing of all the methods that are in the execution chain when an exception is thrown is called a(n) ____.
stack trace
____ is/are used to facilitate managing exceptions in a consistent, efficient way.
try...catch...finally
When an unexpected error occurs in the try block that throws an exception, ____.
control transfers the first listed matching catch clause.
The property of the Exception class that returns a string describing the exception is ____.
Message
The property of the Exception class that returns a string describing the exception is ____.
Message
When you write your own exceptions, the new class should be derived from ____.
System.ApplicationException
An attempt to access an element of an array with an index that is outside the bounds of the array throws a ____.
System.IndexOutOfRangeException
Writing a catch clause without an argument list ____
is the same as writing catch (System.Exception).
An IO.IOException exception is thrown when:
there are problems loading the contents of a file.
An exception that must be included if you use a specific construct describes a ____ exception.
checked
What type of error is associated with a language rule violation?
syntax
Markers placed in an application to indicate the program should halt execution when it reaches that spot is a(n) ____.
breakpoint
While in debug mode, you can look inside a method and examine the method's
program statements using ____.
Step Into
Which of the following preventive actions might be taken to keep your program from crashing?
include if statements that check values used as input
When an unhandled exception message is displayed and you click on the Details button in Visual Studio, ____
a stack trace of methods with the method that raised the exception listed first is displayed.
If an event that creates a problem happens frequently, it is best to write instructions to take care of the problem with ____.
conditional expressions
When code is included in all three blocks for the try...catch...finally construct, ____
the try block is attempted first.
All exception classes inherit from the ____ class.
Exception
The ____ property associated with exception objects returns a string describing the exception.
Message
Which exception class will catch a problem if an attempt is made to access an element stored at location -23 in an array?
System.IndexOutOfRangeException
Which of the following would not throw an exception?
division by zero involving floating-point operands