Bird
0
0

Why does the .NET exception hierarchy separate SystemException and ApplicationException?

hard🧠 Conceptual Q10 of 15
C Sharp (C#) - Exception Handling
Why does the .NET exception hierarchy separate SystemException and ApplicationException?
ATo improve performance of exception handling
BTo allow exceptions to be caught without try-catch
CTo distinguish system errors from user-defined errors
DTo enforce compile-time checking of exceptions
Step-by-Step Solution
Solution:
  1. Step 1: Understand purpose of exception categories

    .NET separates exceptions to help developers distinguish between system-level errors and application-level errors.
  2. Step 2: Identify reason for separation

    SystemException is for runtime and system errors, while ApplicationException is intended for user-defined exceptions to clarify error origin.
  3. Final Answer:

    To distinguish system errors from user-defined errors -> Option C
  4. Quick Check:

    Exception hierarchy separates error origins [OK]
Quick Trick: SystemException = system errors; ApplicationException = user errors [OK]
Common Mistakes:
MISTAKES
  • Thinking separation improves performance
  • Believing exceptions can be caught without try-catch

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Sharp (C#) Quizzes