Multiple Choice
In the following code, which statement is the throw point?
double divide(int numer, int denom)
{
If (denom == 0)
throw "ERROR: Cannot divide by zero.\n";
else
return static_cast<double>(numer) /denom;
}
A) if (denom == 0)
B) throw "ERROR: Cannot divide by zero.\n";
C) return static_cast<double>(numer) /denom;
D) There is no throw point because there is no try block.
E) None of these
Correct Answer:

Verified
Correct Answer:
Verified
Q26: If you want to catch a bad_alloc
Q27: Using a function template requires less code
Q28: Class templates allow you to create one
Q29: A function template prefix is placed before
Q30: What does the T represent in the
Q31: The try/catch/throw construct is able to handle
Q32: An exception thrown from outside a try
Q34: In a function template, the programmer substitutes
Q35: The try block is immediately followed by
Q36: To handle an exception that has been