Exam 12: Debugging and Handling Exceptions

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

When code is included in all three blocks for the try...catch...finally construct, ____.

Free
(Multiple Choice)
4.8/5
(80)
Correct Answer:
Verified

C

A stack trace is a listing of all the methods that are in the execution chain when the exception is thrown.

Free
(True/False)
4.7/5
(73)
Correct Answer:
Verified

True

Custom exceptions classes must derive from the System.SystemException class.

Free
(True/False)
5.0/5
(81)
Correct Answer:
Verified

False

____________ are markers that are placed in an application, indicating the program should halt execution when it reaches that point.

(Short Answer)
4.9/5
(73)

C# adheres to a fairly sophisticated set of rules known as C# ____________.

(Short Answer)
4.8/5
(76)

The ____ property associated with exception objects returns a string describing the exception.

(Multiple Choice)
4.9/5
(86)

All exception classes inherit from the ____ class.

(Multiple Choice)
4.9/5
(71)

If an event that creates a problem happens frequently, it is best to write instructions to take care of the problem with ____.

(Multiple Choice)
5.0/5
(88)

Custom exceptions must derive from the ____________ class.

(Short Answer)
5.0/5
(75)

Which of the following would not throw an exception?

(Multiple Choice)
4.9/5
(77)

If a try block is included, you must also specify a catch clause.

(True/False)
4.9/5
(68)

In C# the only checked exceptions are IOExceptions.

(True/False)
4.8/5
(77)

Which of the following preventive actions might be taken to keep your program from crashing?

(Multiple Choice)
4.7/5
(68)

The property of the Exception class that returns a string describing the exception is ____.

(Multiple Choice)
4.9/5
(83)

What order should ArithmeticException, DivideByZeroException, and Exception catch clauses be placed in a try...catch block?

(Multiple Choice)
4.9/5
(90)

An error such as attempting to divide by zero during runtime will always throw an exception.

(True/False)
4.9/5
(89)

An IO.IOException exception is thrown when ____.

(Multiple Choice)
4.8/5
(73)

When an unexpected error occurs in the try block that throws an exception, control transfers ____.

(Multiple Choice)
4.8/5
(82)

A(n) ____________ error is associated with a language rule violation.

(Short Answer)
4.8/5
(92)

The catch clause associated with a try...catch can be omitted as long as you have a finally block.

(True/False)
4.9/5
(92)
Showing 1 - 20 of 75
close modal

Filters

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