Classes that inherit from the Error class are for exceptions that are thrown when __________.

a. an IOException occurs, and the application program should not try to handle them
b. a critical error occurs, and the application program should not try to handle them
c. an IOException occurs, and the application program should try to handle them
d. a critical error occurs, and the application program should try to handle them



b. a critical error occurs, and the application program should not try to handle them

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1. In the following program outline the name var1 is visible (can be referenced) in the function fun. int fun (int a, int b); const int var1 = 5; int main () { … } int fun (int a, int b) { int c; … } 2. The string class is part of the C++ standard library. 3. The file money.h is called the implementation file. 4. A function prototype must be terminated with a semicolon. 5. It is best to wait until the whole program is written before testing your functions.

Computer Science & Information Technology

In a generic method, a type parameter is defined

A) inside the parentheses, along with the method's parameter variables. B) after the method's return type, and before the method's name C) before the method's return type D) inside the body of the method, but before any local variables are declared

Computer Science & Information Technology

What is the complexity of the bubble sort algorithm in the worst case scenario?

a. O(n^2) b. O(n) c. O(2^n) d. O(log(n))

Computer Science & Information Technology

What is wrong with this code?

```class CReceipt { private: float price; public: CReceipt(); CReceipt( float p); CReceipt(float p) {price = p:} }; ``` A. Nothing is wrong with this code. B. should not have a semi-colon after last brace. C. the constructor does not initialize private variables. D. There are two declarations for the overloaded CReceipt() function.

Computer Science & Information Technology