Integrity
Data stays accurate and unaltered unless an authorised person changes it. It protects data from accidental changes and deliberate tampering.
Understanding Integrity in QCE Digital Solutions Unit 4
What it does: A typing slip (880 instead of 88) is an accidental change that leaves the stored data inaccurate. Giving a student 9999 points without authority is intentional tampering, so the data no longer stays accurate and unaltered. Integrity allows changes only by authorised people. A read-only user editing data is unauthorised. A typing slip is an unintentional error. Malware rewriting records is deliberate tampering. A changed hash means the content is different from the original. It could be an accident or tampering, and either way integrity is compromised. Integrity covers mistakes such as typos and corruption, as well as intentional tampering by attackers or insiders.
Common mistakes: hexdigest is a method, so it needs brackets to run. Without them h holds the method itself, not the hash, and the hash can't be used to detect tampering. It should be h = sha256(data).hexdigest(). Only an authorised person (the teacher) should be able to change the data. Using != gives edit rights to everyone except the teacher. It should be if role == 'teacher':.
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 127–333) and word search (Modules 127–401).
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 →