Exam 16: Exception Handling

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The parameter in the catch statement

(Multiple Choice)
4.9/5
(43)

If a function throws an exception,

(Multiple Choice)
4.9/5
(39)

If a function throws an exception and does not catch it, then the function definition and declaration should have _______.

(Short Answer)
4.7/5
(31)

If the following function throws an unhandled exception, what happens? void f1) throws );

(Short Answer)
4.9/5
(37)

The block of code that checks if an unusual situation or error occurs is called

(Multiple Choice)
4.8/5
(29)

If a function does not have an exception specification, then the function can thaw _______ exceptions.

(Short Answer)
4.9/5
(53)

The catch block is a function.

(True/False)
4.7/5
(40)

The following class definition Class MyError {};

(Multiple Choice)
4.8/5
(36)

The following catch statement Catch...)

(Multiple Choice)
4.9/5
(42)

If a function throw list specifies a base class type, then the function may also throw an exception of the ________ class type.

(Short Answer)
4.8/5
(31)

If no exception is thrown, then the _________ is ignored.

(Short Answer)
4.9/5
(40)

Given the following function definition, what happens if the function throws the exception? Void f1 ) throw double) { If //some code here) Throw 12; }

(Multiple Choice)
4.8/5
(35)

The throw statement passes a value to the catch block.

(True/False)
4.7/5
(33)

Can the following function throw any unhandled exceptions? void f1 );

(Short Answer)
4.9/5
(38)

The throw statement is enclosed in

(Multiple Choice)
4.9/5
(36)

If a throw list has multiple exceptions listed, they are separated by _________.

(Short Answer)
4.8/5
(41)

Which of the following would be a good reason for using inherited exception classes?

(Multiple Choice)
4.8/5
(34)

In a try block, the throw statement is always executed.

(True/False)
4.8/5
(38)

The catch block is the group of statements that handle an exception.

(True/False)
4.9/5
(35)

A catch block that expects an integer argument will catch

(Multiple Choice)
4.9/5
(34)
Showing 21 - 40 of 47
close modal

Filters

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