Solved

In the Following Code, Which Statement Is the Throw Point \quad

Question 33

Multiple Choice

In the following code, which statement is the throw point?
double divide(int numer, int denom)
{
If (denom == 0)
\quad throw "ERROR: Cannot divide by zero.\n";
else
\quad 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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions