Exam 16: Exception Handling

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

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

(Short Answer)
4.8/5
(38)

You should use exception handling

(Multiple Choice)
4.9/5
(40)

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

(Short Answer)
4.9/5
(36)

Which of the following function declaration correctly specifies that two types of exceptions are thrown?

(Multiple Choice)
4.8/5
(42)

It is legal to have a catch block with no parameter.

(True/False)
4.7/5
(43)

The parameter in the catch statement

(Multiple Choice)
4.9/5
(36)

The following class definition Class MyError {};

(Multiple Choice)
4.8/5
(38)

The braces are not necessary on a try block.

(True/False)
4.8/5
(38)

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

(Multiple Choice)
4.9/5
(37)

A class that is used for exceptions is declared

(Multiple Choice)
4.9/5
(33)

If the following function will throw a string exception,then Void myFunction );

(Multiple Choice)
4.8/5
(25)

The following catch block catches all __________ exceptions. catch string e) { }

(Short Answer)
4.9/5
(34)

The following function does not throw any unhandled exceptions void f1 )throw );

(True/False)
4.8/5
(29)

When a throw statement is executed,

(Multiple Choice)
4.8/5
(45)

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

(Short Answer)
4.9/5
(38)

Which of the following is not a valid reason for using exception handling?

(Multiple Choice)
4.9/5
(27)

Which type of exception is thrown if a call to the new operator fails?

(Multiple Choice)
4.9/5
(41)

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

(True/False)
4.9/5
(28)

When an unusual situation or error occurs,then the ________ statement is executed.

(Multiple Choice)
4.9/5
(43)

If some part of your program or any library functions that are called)throw an exception,then if this exception is not handled in your code,your program will _____.

(Short Answer)
4.8/5
(38)
Showing 21 - 40 of 47
close modal

Filters

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