Vidyalelo
C++ Programming · Q11

Exception Handling in C++

Programming · C++ Programming · question 11

Q11

Which of the following statements is true about the 'finally' block in C++ exception handling?

A.
It must be present after every 'try' block
B.
It is executed if an exception is caught
C.
It is executed regardless of whether an exception is thrown or not
Answer
D.
It is optional and is not required

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board