logo

AQA A-Level Computer Science practice

In Python, which block contains code that responds if an exception occurs in the associated try block?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

practice

Style

Topic

Programming

Exam-style question

Try this first

In Python, which block contains code that responds if an exception occurs in the associated try block?.

  1. A.except
  2. B.respond
  3. C.error
  4. D.catching

Answer and explanation

Concise answer

except

Why this is correct

An except block provides the response to an exception raised while the related try block is being executed.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions