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
(40)
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
(39)
Correct Answer:
Verified

True

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

Free
(True/False)
5.0/5
(36)
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.8/5
(35)

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

(Short Answer)
4.8/5
(34)

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

(Multiple Choice)
4.9/5
(43)

All exception classes inherit from the ____ class.

(Multiple Choice)
4.9/5
(36)

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
(42)

Custom exceptions must derive from the ____________ class.

(Short Answer)
4.9/5
(36)

Which of the following would not throw an exception?

(Multiple Choice)
4.9/5
(34)

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

(True/False)
4.8/5
(31)

In C# the only checked exceptions are IOExceptions.

(True/False)
4.8/5
(38)

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

(Multiple Choice)
4.8/5
(29)

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

(Multiple Choice)
4.9/5
(36)

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

(Multiple Choice)
4.9/5
(39)

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

(True/False)
4.8/5
(35)

An IO.IOException exception is thrown when ____.

(Multiple Choice)
4.8/5
(33)

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

(Multiple Choice)
4.8/5
(44)

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

(Short Answer)
4.8/5
(39)

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

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

Filters

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