Useability principle: error tolerance
A useability principle: the interface prevents mistakes where it can, and helps users notice and recover from the ones they make, using validation, confirmation prompts and undo.
Understanding Useability principle: error tolerance in QCE Digital Solutions Unit 3
What it does: Removing the most recent action from the history list reverses it. This is how an undo feature gives users a way to recover from errors. The range check rejects impossible ages before they are stored. This is input validation, which prevents errors and so makes the interface more error tolerant. A confirmation prompt gives the user a chance to stop and rethink before a hard-to-reverse action goes ahead. With no confirmation and no undo, a single accidental tap causes permanent loss. The other design prevents and allows recovery from the mistake. A tolerant interface notices the problem and explains how to fix it. A crash gives the user no way to recover.
Common mistakes: The validation check is reversed. It rejects long passwords and lets short ones through. It should be if len(pw) < 8: so that passwords which are too short are caught before they are saved. Undo should restore the previous state, which is the last item left after pop(). Using history[0] jumps back to the oldest state and throws away all of the user's recent work. It should be text = history[-1].
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 128–176) and word search (Modules 15–176).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
error toleranceFill in the Blanks
Spot the Error
Student with a class code? Join your class →