Exam 18: Exception Handling

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

A function declared thus: void func(argument_list)throw();should throw no exception of any type.

(True/False)
4.9/5
(40)

A function uses an exception specification that includes only int,but an exception of type double is thrown.A catch block is provided that catches a double,so things proceed properly.

(True/False)
4.9/5
(33)

Statements that cause an exception must be part of a try block.

(True/False)
4.8/5
(39)

A function that satisfies its preconditions but cannot fulfill its postconditions should throw an exception.

(True/False)
4.8/5
(39)

In type matching to select a catch block,only exact matches work.

(True/False)
4.8/5
(37)

The situations where exceptions are used put the try block with the throw statement followed by the catch block all in one function.

(True/False)
4.9/5
(32)

An uncaught exception in C++ is ignored.

(True/False)
4.8/5
(33)

Write just a catch block with a catch block parameter type that will catch all exceptions that are yet uncaught.

(Essay)
4.7/5
(38)

The context in which the throwing of an exception is detected is the try block.

(True/False)
4.8/5
(34)
Showing 21 - 29 of 29
close modal

Filters

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