CBSE Class 12 Computer Science Question 13 of 30

Exception Handling — Question 4

Back to all questions
4
Question

Question 4

Which block is a mandatory block in exception handling process?

  1. try
  2. except
  3. finally
  4. else
Answer

try

Reason — The try block is a mandatory component of the exception handling process because it encapsulates code that might raise exceptions, allowing them to be caught and handled effectively.