Integrity
Data stays accurate, complete and unaltered unless an authorised person changes it. Tampering breaks integrity by altering data without permission.
Understanding Integrity in WA Computer Science ATAR Unit 2
What it does: The UPDATE statement alters stored data without authorisation, which is tampering and means the mark is no longer accurate. The check allows only an authorised role to change the data, so unauthorised changes are blocked and the data stays unaltered. Integrity is about keeping data accurate, complete and unaltered. Keeping data secret is confidentiality. This is the core definition of integrity in the CIA triad: data can be trusted because it has not been changed without permission.
Common mistakes: To detect tampering, store the hash of the original message. The length is not a reliable fingerprint because altered data can keep the same length. It should be saved = hash(msg). The condition is reversed. Matching hashes mean the data is unaltered, so a tampering warning must run when the hashes are different: if hash(file) != saved:.
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 28–122) and word search (Modules 28–266).
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
integrityFill in the Blanks
Spot the Error
Student with a class code? Join your class →