Which of the following statements are correct about exception handling in C#.NET? 1. try blocks cannot be nested. 2. In one function, there can be only one try block. 3. An exception must be caught in the same function in which it is thrown. 4. All values set up in the exception object are available in the catch block. 5. While throwing a user-defined exception multiple values can be set in the exception, object.

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
Which of the following statements are correct about exception handling in C#.NET?

1. try blocks cannot be nested.
2. In one function, there can be only one try block.
3. An exception must be caught in the same function in which it is thrown.
4. All values set up in the exception object are available in the catch block.
5. While throwing a user-defined exception multiple values can be set in the exception, object.

1.1 only

2.1 and 2 only

3.3 only

4.4 and 5 only

Posted Date:-2021-02-25 10:08:49


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!