adplus-dvertising
frame-decoration

Question

If an integer object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is

a.

int

b.

double

c.

either (a) or (b)

d.

neither (a) nor (b)

Answer: (a).int

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If an integer object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is

Similar Questions

Discover Related MCQs

Q. You separate a derived class name from its access specifier with

Q. To use a template class member function, use the ________ with the instantiation

Q. When a class is derived from another derived class, the newly derived class

Q. With a template class, _____ type is generic

Q. Template classes that have already been written to perform common class tasks are called _____

Q. If two types of errors may be thrown, you should write _______

Q. If no exception is thrown ________

Q. Within parentheses, catch blocks can have _____

Q. To create a template class, you begin with _________

Q. If an integer object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is _____

Q. The compiler determines the type used in a template function via ___________

Q. Catch blocks must _____

Q. An exception specification begins with the keyword _____

Q. A function in a derived class that has the same name as a function in the parent class _____

Q. When you instantiate a derived class object, a constructor for the derived class _____

Q. The difference between a return and a throw is that _____

Q. In the statement template<class T>,

Q. The generic name used for unexpected errors that occur during the execution of a program is

Q. You can code a default exception handler by creating a catch block

Q. A function that uses variable types is called __________