adplus-dvertising
frame-decoration

Question

What is the use of try & catch?

a.

It is used to manually handle the exception

b.

It helps to fix the errors

c.

It prevents automatic terminating of the program in cases when an exception occurs

d.

All of the mentioned

Posted under C# programming

Answer: (d).All of the mentioned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the use of try & catch?

Similar Questions

Discover Related MCQs

Q. Which of these classes is related to all the exceptions that are explicitly thrown?

Q. Which of the following keywords is used by the calling function to guard against the exception that is thrown by called function?

Q. Which of these exceptions will occur if we try to access the index of an array beyond its length?

Q. Which of these exceptions handles the divide by zero error?

Q. A single try block must be followed by which of these?

Q. Which of these clauses will be executed even if no exceptions are found?

Q. Choose the correct statement which makes exception handling work in C#.NET?

Q. When no exception is thrown at runtime then who will catch it?

Q. Which of the following is the wrong statement about exception handling in C#.NET?

Q. Which of these keywords is used to manually throw an exception?

Q. Which of these keywords must be used to monitor exceptions?

Q. Which of these keywords is not a part of exception handling?

Q. Select the correct statement about an Exception?

Q. Select the statements which describe the correct usage of exception handling over conventional error handling approaches?

Q. Which of the following is the object oriented way to handle run time errors?

Q. Which among the following is considered as .NET Exception class?

Q. Which among the following is NOT an exception?

Q. Select the correct statement about properties of read and write in C#.NET?

Q. If the math class had add property with get accessors then which of the following statements will work correctly?

Q. If math class had add property with get and set accessors, then which of the following statements will work correctly?