Solved

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

Question 17

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents