Test Your Knowledge: Quiz

Question 16-1. What is an exception, in C# terms?

Question 16-2. What’s the difference between a bug and an exception?

Question 16-3. What’s the syntax for generating an exception?

Question 16-4. What’s the syntax for handling an exception?

Question 16-5. What does the framework do if no exception handler is found in the method that throws an event?

Question 16-6. When an exception handler is used, where does the program execution resume, after the handler code is run?

Question 16-7. What is the syntax for throwing a new ArgumentNull exception?

Question 16-8. How do you write code to handle various exceptions differently?

Question 16-9. What is the finally statement?

Question 16-10. Why would you want to create a custom exception?

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset