Answer the following questions true (T) or false (F)
1. In C++, an exception object can be a user-defined type or any type that is built-into C++ language.
2. In C++ an exception object must be derived from the exception class defined in the standard library.
1. True
Explanation: The purpose of an exception handling is to manage exceptional events. The exceptional object only has to transfer sufficient information to manage the event. If a string or int carries sufficient information, the string or int can be used for the exception object.
2. False
Explanation: An exception object in C++ can have any type in C++ including built-in types, an enum type, a string, a C-string, a user defined class, without regard to whether the class is derived from the standard library exception class.
You might also like to view...
The following statement is an example of __________.
import java.util.Scanner; a. an explicit import statement b. an unconditional import statement c. a wildcard import statement d. a conditional import statement
Assume the following program declarations for the below question
``` float x, y, z; int m, n; void w // function prototype (float&, float&, int); ``` Is the function call w (z, y, m); correct? If not, state why not.
The SmartArt button is located in the Text group on the Insert tab
Indicate whether the statement is true or false
A ____ language is a type of synthetic language developed with specific syntax and semantic rules that allow individuals to create statements or functions to interface and control the behavior or functionality of a machine.
A. server B. computing C. design D. programming