C# Mastery Hub
Home
Challenges
Discussion
Lessons
Core Topics
C# Fundamentals
Console Applications
Classes & OOP
Windows Forms
ASP.NET Core
SQL Server
VS & SQL Connection
RDLC Reports
.NET MAUI
Getting Started
Getting Started
Website Development
SEO Guide
Security
Project Workflow
Extra Topics
Cloud & Deployment
AWS Cloud
Deployment
About
Contact
Test Your Knowledge
C# Fundamentals - Lesson 9: Exception Handling Quiz
Answer all questions to test your understanding
1
What is exception handling in C#?
Ignoring errors in code
Handling runtime errors gracefully
Preventing all errors
Logging only errors
2
What is the correct order of catch blocks?
Most specific to most general
Most general to most specific
Order doesn't matter
Only one catch block is allowed
3
What is the purpose of the finally block?
To catch exceptions
To always execute code regardless of exceptions
To throw exceptions
To log errors
4
Which keyword is used to throw a custom exception?
throw
throws
raise
error
5
What does the using statement do?
Imports a namespace
Automatically disposes objects
Creates a new object
Defines a scope
Submit Quiz