Exam 10: Exception Handling

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

In some languages, if an exception is thrown from one method and caught by another, you must write a(n) ____________________.

(Short Answer)
4.8/5
(35)

When a method in an object-oriented program causes an exception, such as dividing by 0, the method ____.

(Multiple Choice)
4.9/5
(41)

Methods are flexible partly because they are ____.

(Multiple Choice)
4.9/5
(39)

When illegal division by 0 takes place, an exception object is not created automatically by the object-oriented language application.

(True/False)
4.9/5
(41)

In object-oriented terminology, you "____" a segment of code that might cause an error.

(Multiple Choice)
4.8/5
(38)

An ____ indicates exception types that might be thrown in the method header.

(Multiple Choice)
4.9/5
(37)

The ____________________ is where the computer stores the list of method locations to which the system must return.

(Short Answer)
4.8/5
(36)

You can create your own exceptions.

(True/False)
4.8/5
(33)

When you create your own exceptions by inheriting from a built-in Exception class, you gain access to methods contained in the ____________________ class, such as those that display a default message describing an exception and that display the stack trace.

(Short Answer)
4.8/5
(43)

You can handle ____________________ either in a traditional manner or in an object-oriented manner.

(Short Answer)
4.9/5
(28)
Showing 41 - 50 of 50
close modal

Filters

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