Bird
Raised Fist0

Which keyword is used in C# to start a block that handles exceptions?

easy📝 Syntax Q3 of Q15
C Sharp (C#) - Exception Handling
Which keyword is used in C# to start a block that handles exceptions?
Acatch
Btry
Cthrow
Dfinally
Step-by-Step Solution
Solution:
  1. Step 1: Identify keywords for exception handling

    C# uses specific keywords: try, catch, throw, finally.
  2. Step 2: Purpose of 'try'

    The 'try' block contains code that might cause an exception and starts the handling process.
  3. Final Answer:

    try -> Option B
  4. Quick Check:

    Keyword to start handling = D [OK]
Quick Trick: 'try' starts the block to catch exceptions [OK]
Common Mistakes:
MISTAKES
  • Confusing 'catch' as the start keyword
  • Using 'throw' to start handling
  • Mistaking 'finally' as the start

Want More Practice?

15+ quiz questions · All difficulty levels · Free

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