Answer the following questions true (T) or false (F)
1. A function does not have an exception specification at all, so exceptions are prohibited.
2. The exception specification for a function has no effect on an exception that is caught within the function.
1. False
Explanation: A function declared without an exception specification is assumed to throw every exception. If there is no specification, then all exceptions are allowed. Contrast this with an exception specification that has an empty throw list, as in void f() throw()where no exceptions should be thrown.
2. True
Explanation: The exception specification (or throw list) is to name exceptions that are propagated from the function to the function’s caller.
You might also like to view...
Which of the following is an example of an infinite loop?
a. While 1 > 2 b. While 2 < 1 c. While 1 == 1 d. Loop 1000 times times e. None of these
In its simplest form, project portfolio management can be broken down into four main components.
Answer the following statement true (T) or false (F)
To add multiple records to a database from an external file, you use the ____ statement with the name of the local text file that contains the records you want to add.
A. INSERT DATA B. LOAD DATA C. INSERT RECORDS D. UPLOAD RECORDS
You must use an adjustment layer to make color corrections to a layer.
Answer the following statement true (T) or false (F)