Exam 13: Exception Handling: A Deeper Look

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

Which of the following statements is false

(Multiple Choice)
4.8/5
(31)

If a finally block appears after the last catch block,it is executed only if an ex ception is thrown.

(True/False)
4.8/5
(29)

The catch handler that catches an exception of type Exception should be

(Multiple Choice)
4.7/5
(42)

In many cases,handling an exception allows a program to automatically restart execution of the program from the beginning.

(True/False)
4.8/5
(29)

A NullReferenceException is thrown when there's an attempt to use a reference that points to nothing.

(True/False)
4.7/5
(37)

All exceptions cause the program to terminate when thrown.

(True/False)
4.7/5
(34)

The process that attempts to locate an appropriate catch handler for an uncaught exception is known as:

(Multiple Choice)
4.9/5
(27)

A catch block can use a concise notation to catch exceptions related by inheritance.

(True/False)
4.8/5
(37)

In the catch block below,what is e ? catch (DivideByZeroException e) { Console.WriteLine(e); }

(Multiple Choice)
4.8/5
(30)

The finally block is executed only if no error was reached in the try block.

(True/False)
4.8/5
(32)

If an exception is thrown in a catch handler,any code in the handler that follows the thrown exception will:

(Multiple Choice)
4.9/5
(35)

Which of the following statements is false

(Multiple Choice)
4.9/5
(34)

User-created exceptions can be created by:

(Multiple Choice)
4.8/5
(46)

C# throws an IntegerArithmeticException when division by zero in integer arithmetic occurs.

(True/False)
4.9/5
(33)

What's the difference between a try block and a try statement

(Multiple Choice)
4.8/5
(36)

There can be no code in between try/catch/finally blocks.

(True/False)
4.9/5
(32)

User-defined exceptions should be derived from the:

(Multiple Choice)
4.9/5
(44)

A catch block that does not specify an exception type or an identifier ____________.

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

Filters

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