Exam 17: Exception Handling: a Deeper Look

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

The purpose of stack unwinding is to:

Free
(Multiple Choice)
4.8/5
(30)
Correct Answer:
Verified

A

The correct order in which an exception is detected and handled is:

Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
Verified

D

Which of the following statements is false?

Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
Verified

D

The try block cannot:

(Multiple Choice)
4.9/5
(35)

To rethrow an exception, the exception handler must:

(Multiple Choice)
4.8/5
(28)

Catch blocks are not required to contain:

(Multiple Choice)
4.8/5
(30)

To initialize a unique_ptr, you can use C++14's ________ function template, which allocates dynamic memory with operator new, then returns a unique_ptr to that memory. Prior to C++14, you'd pass the result of a new expression directly to unique_ptr's constructor.

(Multiple Choice)
4.8/5
(30)

Select the false statement. The new operator:

(Multiple Choice)
4.8/5
(38)

Which statement about class unique_ptr (of the new C++ standard) and dynamic memory allocation is false?

(Multiple Choice)
4.8/5
(22)

An advantage of using inheritance with exceptions is:

(Multiple Choice)
4.8/5
(33)

An exception:

(Multiple Choice)
4.9/5
(26)

Exception handling may allow a program to:

(Multiple Choice)
4.8/5
(28)

Exception handling should not be used:

(Multiple Choice)
4.9/5
(31)

Once an exception is thrown, when can control return to the throw point?

(Multiple Choice)
4.8/5
(34)

Which class indicates that an error occurred in which an arithmetic result was larger than the largest number that can be stored in the computer?

(Multiple Choice)
4.9/5
(36)

Select the false statement. Depending on the compiler:

(Multiple Choice)
4.8/5
(27)

Select the false statement. If an exception is thrown from a constructor:

(Multiple Choice)
4.9/5
(34)

Select the false statement. A rethrown exception:

(Multiple Choice)
5.0/5
(36)

Select the false statement regarding exceptions.

(Multiple Choice)
4.7/5
(34)

If dynamic memory has been allocated for an object and an exception occurs, then:

(Multiple Choice)
4.8/5
(30)
close modal

Filters

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