Exam 11: Exception Handling

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The ____ methods are used to convert string data to another data type, such as int , double , or bool , without fear of generating an exception.

(Multiple Choice)
4.9/5
(43)

____________________ applications are designed so that they continue to operate, possibly at a reduced level, when some part of the system fails.

(Short Answer)
4.9/5
(35)

The memory location where the computer stores the list of locations to which the system must return is known as the ____.

(Multiple Choice)
4.7/5
(31)

When you write a block of code in which something can go wrong, you can place the code in a(n) ____ block.

(Multiple Choice)
4.9/5
(29)

You can place any number of statements in a try block, including those you know will never throw an exception.

(True/False)
4.8/5
(39)

The Exception class contains a read-only property named ____ that contains useful information about an Exception object.

(Multiple Choice)
4.8/5
(26)

Each ____ block can "catch" one type of Exception .

(Multiple Choice)
4.8/5
(37)

C# has more than 100 defined Exception subclasses.

(True/False)
4.8/5
(40)

An exception of the ____ class is thrown when an attempt is made to store an element of the wrong type within an array.

(Multiple Choice)
4.7/5
(36)

What types of objects can be explicitly thrown?

(Essay)
4.8/5
(26)

Errors you discover when compiling a program are considered to be exceptions.

(True/False)
5.0/5
(37)

You can deliberately generate a SystemException by forcing a program to contain an error.

(True/False)
4.7/5
(44)

Show the syntax (the general form) of a try … catch pair.

(Essay)
4.9/5
(29)

In C#, all exceptions are objects that are members of the ____ class or one of its derived classes.

(Multiple Choice)
4.8/5
(34)

The system of passing an exception through a chain of calling methods is called ____ the exception.

(Multiple Choice)
5.0/5
(36)

The StackTrace property of an Exception can be a useful debugging tool. How is this property used when debugging?

(Essay)
4.8/5
(31)

Why might a finally block be necessary?

(Essay)
4.9/5
(32)

When you catch an Exception , you can print the value of the ____  property to display a list of methods in the call stack so you can determine the location of the Exception .

(Multiple Choice)
5.0/5
(30)

When an Exception object is thrown and multiple catch blocks are present, what happens?

(Essay)
4.7/5
(44)

A(n) ____________________ is any error condition or unexpected behavior in an executing program.

(Short Answer)
4.9/5
(38)
Showing 21 - 40 of 42
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)