adplus-dvertising
frame-decoration

Question

When an object-oriented program detects an error within a function, the function _________

a.

throws an exception

b.

throws a fit

c.

catches a message

d.

catches an exception

Answer: (a).throws an exception

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. When an object-oriented program detects an error within a function, the function _________

Similar Questions

Discover Related MCQs

Q. When you create a derived class and instantiate an object _____

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

Q. When a function includes a throw statement for errors, the call to the potentially offending function should be placed within a _____ block

Q. In a C++ program, which of the following can be thrown?

Q. You must provide a constructor for a derived class

Q. If a derived class uses the public access specifier, then _____

Q. You _____ write your own container classes

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. 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 _____