Question:medium

Which of the following are used in python exception handling?
Options:
A) try
B) except
C) finally
D) seek
Choose the correct answer from the options given below:

Updated On: Jan 16, 2026
  • (A), (B), and (D) only
  • (A), (B), and (C) only
  • (A), (B), (C), and (D)
  • (B), (C), and (D) only
Show Solution

The Correct Option is B

Solution and Explanation

Python's exception handling manages runtime errors, enabling program continuation. The following keywords are integral to this process:

  1. try: Encloses code susceptible to exceptions.
  2. except: Catches and processes exceptions from the try block.
  3. finally: Executes after the try block, irrespective of exceptions, typically for cleanup.

The term seek is unrelated to Python exception handling; it's a file operation for repositioning the file pointer.

Consequently, the valid components are: (A), (B), and (C) only

Was this answer helpful?
0


Questions Asked in CUET (UG) exam