Vidyalelo
C# Programming · Q28

Exception Handling in C Sharp

Programming · C# Programming · question 28

Q28

What is the purpose of the finally block in C# exception handling?

A.
To execute cleanup code regardless of whether an exception occurs or not
Answer
B.
To handle specific types of exceptions
C.
To define custom exceptions
D.
To propagate exceptions

Answer: Option A

Solution

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