Exam 12: Handling Exceptions

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

Be careful when writing an exception specification using a(n) ____ because any type might eventually be instantiated.

(Multiple Choice)
4.8/5
(33)

When an object-oriented program detects an error within a function, the function should send an error object to the calling function, or ____________________ an exception.

(Short Answer)
4.8/5
(34)

____ an exception is the act of explicitly passing a caught exception along to a higher-level catch block.

(Multiple Choice)
4.9/5
(40)
Match each term with the correct statement below.
Premises:
part of the C++ Standard library
Responses:
exception handling
try block
exception specification
Correct Answer:
Verified
Premises:
Responses:
part of the C++ Standard library
exception handling
(Matching)
4.8/5
(32)

A general rule of ____ programming is that a function should be able to determine an error situation, but not necessarily take action on it.

(Multiple Choice)
4.7/5
(32)

You throw an exception by using the keyword throw followed by ____ object.

(Multiple Choice)
4.8/5
(25)

When a function throws an exception, the function is no longer ____.

(Multiple Choice)
4.8/5
(44)

Visual C++ departs from the ____ standard in its implementation of exception specifications.

(Multiple Choice)
4.8/5
(33)

Describe one disadvantage of using the default catch block.

(Essay)
4.9/5
(38)

To use the set_new_handler() function, you should insert ____ at the top of your program file.

(Short Answer)
4.8/5
(30)
Match each term with the correct statement below.
Premises:
forces a program to end
Responses:
exception specification
default exception handler
catch block
Correct Answer:
Verified
Premises:
Responses:
forces a program to end
exception specification
(Matching)
4.7/5
(37)
Showing 41 - 51 of 51
close modal

Filters

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