Pearson Edexcel GCSE Computer Science (1CP2)Specification point 1.2.5

Edexcel 1CP2 1.2.5: Types of error

The free BugBot lesson that teach this point, a robot to try it on, and the past-paper questions that test it.

What it covers

Every programmer, on every day of their life, makes mistakes and reads error messages. Getting comfortable with that early is the most useful thing in this module. An error message is not the computer telling you off. It is the computer telling you where to look.

  • Read the whole message
  • Syntax errors: Python cannot read it
  • Runtime errors: it crashes while running
  • Logic errors: no message at all
  • How to fix things
Read the free lesson (15 min)

Or do it in the simulator, with tasks that mark themselves

Lessons that teach it

  1. F1.4 Errors: syntax, runtime and logic Programming basics
    Reading an error message, and the three kinds of error by their exam names.

Try it on a robot

The task from F1.4 Errors: syntax, runtime and logic, running here. Change the program and press Run.

Past paper questions on this

Real exam questions that test this, each worked through with a program you can run.

The specification is Edexcel's own document; this page says which of our lessons teach point 1.2.5 and is not endorsed by the board.