Vidyalelo
C# Programming · Q26

Exception Handling in C Sharp

Programming · C# Programming · question 26

Q26

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

A.
To clean up resources
B.
To execute code that must always run
C.
To enclose the code that might throw an exception
Answer
D.
To catch an exception

Answer: Option C

Solution

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