logo

AQA A-Level Computer Science practice

What is the main purpose of exception handling in a program?

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

What is the main purpose of exception handling in a program?.

  1. A.To respond to errors that occur while the program is running
  2. B.To make every variable a constant
  3. C.To convert all programs into machine code
  4. D.To remove the need for testing

Answer and explanation

Concise answer

To respond to errors that occur while the program is running

Why this is correct

Exception handling allows a program to deal with an exceptional condition during execution rather than allowing the program to fail without a planned response.

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