Useability principle: safety
A useability principle: the interface prevents harmful mistakes, such as with confirmation, clear warnings and data protection, and lets users recover from errors, such as with undo.
Understanding Useability principle: safety in QCE Digital Solutions Unit 1
What it does: The message box states the consequence clearly and gives the user a choice to stop. That is a clear warning supporting safety. The show="*" option masks what the user types, keeping a password private. This protects personal data, a safety sub-theme. Undo lets users reverse an error. Safety is about both preventing mistakes and helping users recover from them. Clear warnings use plain language and tell users what will happen and what they can do. Cryptic codes do not help users avoid harm. Placing a risky action away from common ones, plus confirming it, reduces accidental harmful clicks. A safe interface asks the user to confirm first, such as with a confirm() dialog, before running a destructive action.
Common mistakes: The confirmation dialog was replaced with True, so the file is deleted without asking. It should be ok = askyesno('Delete file?') so the user can cancel a harmful action. Undo must restore the deleted item, not remove it again. The line should be items.append(item) so the user can recover from the mistake.
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 60–81) and word search (Modules 1–81).
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
safetyFill in the Blanks
Spot the Error
Student with a class code? Join your class →