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?
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access