For each function, f(), g() and h() state how what exceptions should be thrown.

Given these three functions with different exception specifications
a) void f()throw();
b) void g()throw(int, string);
c) void h();


The function f() should throw no exceptions at all unless the exception is caught inside of f(). The function g() should throw only int and string type exceptions. The function h() may throw an exception of any type.

Part a) has an empty exception list, prohibiting any exceptions. Part b) specifies only int and string. Part c) prohibits nothing.

Computer Science & Information Technology

You might also like to view...

__________ programming encapsulates data and functions in an object.

a. Object-oriented b. Menu-driven c. Procedural d. Class

Computer Science & Information Technology

Which of the following is an example of a Severity Level 1 incident?

A) Inappropriate access to legally protected or proprietary information B) Malware detected on multiple systems C) User access to content or sites restricted by policy D) Any act that is in direct violation of local, state, or federal law or regulation

Computer Science & Information Technology

A(n) __________ page does not reside in physical memory because it has either been swapped out to disk or has not yet been loaded into memory.

a. valid b. active c. inactive d. invalid

Computer Science & Information Technology

Which of the following Mail Merge Commands from the Mailings tab opens the Mail Merge Recipients dialog box in order to sort records?

A) Rules B) Start Mail Merge C) Select Recipients D) Edit Recipient List

Computer Science & Information Technology