Courseiva
Software Development and DesigneasyMultiple SelectObjective-mapped

200-901 Software Development and Design Practice Question

A Python function needs to handle both expected and unexpected errors during file I/O. Which THREE constructs are essential for robust exception handling? (Choose three.)

⚠ Common exam trap

Cisco often tests the distinction between constructs that handle exceptions (try, except, finally) versus those that control flow (else) or raise exceptions (raise), leading candidates to include optional or non-handling constructs as 'essential'.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

except

(except) is correct because it is the block that catches exceptions raised during execution of the try block. Without an except clause, any error would propagate unhandled and crash the program. In file I/O, this is essential to catch specific exceptions like FileNotFoundError or PermissionError and respond appropriately.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • except

    Why this is correct

    Catches specific exceptions.

  • else

    Why it's wrong here

    Optional; runs if no exception occurs.

  • try

    Why this is correct

    Defines the block to monitor for exceptions.

  • raise

    Why it's wrong here

    Used to raise exceptions, not essential for handling.

  • finally

    Why this is correct

    Executes cleanup code regardless of exception.

About these practice questions

This 200-901 question is part of Courseiva's 989-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 200-901 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-901 exam.