Vidyalelo
C# Programming · Q38

Exception Handling in C Sharp

Programming · C# Programming · question 38

Q38

What is the purpose of the try-catch block in C#?

A.
To handle exceptions that may occur in a block of code
Answer
B.
To throw exceptions
C.
To declare custom exceptions
D.
To clean up resources in case of an exception

Answer: Option A

Solution

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