Vidyalelo
C++ Programming · Q31

Exception Handling in C++

Programming · C++ Programming · question 31

Q31

Which statement about the 'finally' block in C++ exception handling is true?

A.
It must always be followed by a 'catch' block
B.
It must always be followed by a 'try' block
C.
It is executed regardless of whether an exception is thrown or not
Answer
D.
It is optional and can be omitted

Answer: Option C

Solution

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