Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1integrity | AAltering data without permission, which breaks integrity | |
| 2tampering | BUPDATE results SET mark = 100 WHERE studentId = 1; | |
| 3A student secretly changes their own mark in the school database, breaking integrity | CIntegrity allows changes made by an authorised person, so a correction by an admin does not break it. | |
| 4Integrity is kept when only an authorised person can change data | Dif user.role == "teacher": update_mark() | |
| 5A hacker edits a bank balance from $500 to $5000. The data is still available, so integrity is intact. | EAltering the balance without permission is tampering, which breaks integrity even though the data is still available and readable. | |
| 6An admin corrects a typo in a customer's address. This breaks integrity because the data was changed. | FData stays accurate, complete and unaltered unless an authorised person changes it |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
integrity — Data stays accurate, complete and unaltered unless an authorised person changes it. Tampering breaks integrity by altering data without permission.if original != received:
print("Tampering detected")if saved != current:
print("Integrity lost")allowed = False
if allowed:
mark = 90staff = ["teacher", "admin"]
if user in staff:
mark = 95def changed(old, new):
return old != new
print(changed("A", "B"))