logo

AQA A-Level Computer Science practice

Which Python structure is used to attempt code that might produce an exception?

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

Which Python structure is used to attempt code that might produce an exception?.

  1. A.try
  2. B.attempt
  3. C.handle
  4. D.check

Answer and explanation

Concise answer

try

Why this is correct

In Python, statements that might cause an exception are placed in a try block.

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