Answer the following statements true (T) or false (F)
1. The following function does not throw any unhandled exceptions
void f1( ) throw ( );
2. Functions that might throw an exception must have a throw list.
3. Functions may potentially throw at most one exception.
4. If a function throws an exception, it must be caught inside that function.
5. It is legal to have a catch block with no parameter.
1. TRUE
2. FALSE
3. FALSE
4. FALSE
5. TRUE
You might also like to view...
A customer struggles with the small print of most smartphones. The customer still likes the idea of using a smartphone for phone calls and work. Which of the following devices should the technician recommend to the customer?
A. A tablet B. An e-Reader C. A phablet D. A smart watch
Which of the following is equivalent to this code segment?
``` int total = 0; for (int i = 0; i <= 20; i += 2) total += i; ``` a. int total = 0; for (int i = 20; i < 0; i += 1) total += i; b. int total = 0; for (int i = 0; i <= 20; total += i, i += 2); c. int total = 0; for (int i = 0, i <= 20, total += i; i += 2); d. int total = 0; for (int i = 2; i < 20; total += i, i += 2);