Exam 13: Exception Handling: A Deeper Look

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

In C#,try blocks are used for:

(Multiple Choice)
4.7/5
(40)

Which of the following is not a property of Exception

(Multiple Choice)
4.8/5
(32)

If an exception handler is to catch a variety of exceptions,use a comma-separated list of catch arguments in the catch handler.

(True/False)
4.9/5
(32)

When an exception occurs it is said to have been:

(Multiple Choice)
4.8/5
(42)

Stack unwinding is the process that attempts to locate an appropriate catch handler for an uncaught exception.

(True/False)
4.9/5
(34)

In order to tell the user what happened in an exception you must

(Multiple Choice)
4.7/5
(32)

After the last catch block,the required finally block provides code that always executes regardless of whether or not an exception occurs.

(True/False)
4.8/5
(36)

Which of the following is not included in an exception's stack trace

(Multiple Choice)
4.8/5
(37)

A FormatException is used to handle:

(Multiple Choice)
4.7/5
(37)

Variables local to a try block are usable in the corresponding catch and finally blocks.

(True/False)
4.8/5
(31)

Which of the following statements is false

(Multiple Choice)
4.8/5
(34)

After a finally block has finished executing:

(Multiple Choice)
4.7/5
(34)

Which of the following statements about try blocks is true

(Multiple Choice)
4.9/5
(41)

Resource de-allocation should be done explicitly in the finally block.

(True/False)
4.9/5
(42)

By convention,the name of each user-defined exception should end with Exception.

(True/False)
4.9/5
(32)

C# does not guarantee that a finally block (if one is present)will be executed if a try block is exited via a return,break or continue statement.

(True/False)
4.8/5
(40)

The Message property of an exception is what is displayed to the user should that exception be thrown.

(True/False)
4.9/5
(31)

Which of the following statements is true

(Multiple Choice)
4.9/5
(38)

The StackTrace property keeps track of all the method calls that occur in a program,and that's how a program knows which method caused the error.

(True/False)
4.8/5
(31)

An uncaught exception:

(Multiple Choice)
4.8/5
(41)
Showing 21 - 40 of 58
close modal

Filters

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