OCR GCSE Computer Science (J277)Specification point 2.3.1

OCR J277 2.3.1: Defensive design

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

Lessons that teach it

  1. F1.5 Comments and readable code Programming basics
    Comments, names, blank lines: code a person can read and change.
  2. F6.1 Defensive design and validation Robust programs
    Anticipating misuse; presence, type, range, length, format and look-up checks.
  3. F6.2 Authentication Robust programs
    Usernames and passwords, limiting attempts, and stronger ways to prove who someone is.

Try it on a robot

The task from F1.5 Comments and readable code, 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 OCR's own document; this page says which of our lessons teach point 2.3.1 and is not endorsed by the board.