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

1. An uncaught exception in C++ is ignored.

2. If an exception is thrown in a function, say, f(), but not handled there, the exception is propagated to the function that called f().


1. False
Explanation: If an exception is thrown in C++ but not handled, the penalty is program termination.
2. True
Explanation: The exception is propagated up the call chain. The exception is handled by some function in the call chain, or the program terminates.

Computer Science & Information Technology

You might also like to view...

Local e-mail is based on ____ technology, which means that an e-mail server stores incoming messages until your client computer connects and requests them.

A. input-and-output B. send-and-receive C. store-and-send D. store-and-forward

Computer Science & Information Technology

Most people assume that when you send email it is

a. semi-private b. private c. public

Computer Science & Information Technology

The Master Detail Page Set button in the ____ category of the Insert panel enables you to create a set of pages that presents information in two levels of detail.

A. Data B. HTML C. Common D. Layout

Computer Science & Information Technology

"If the new e-commerce system fails," the Chief Executive Officer said, "our company will go out of business." The e-commerce system must be a(n) ____.

a. critical path item b. mission critical system c. critical success factor d. strategic component

Computer Science & Information Technology