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 | |
|---|---|---|
| 1amount = 50 -> amount = 5 | Atrust = records_unchanged | |
| 2delete payment #204 | BA cheat that tries to change a saved payment amount afterwards, which an unalterable record stops | |
| 3Because saved records cannot be changed, everyone can trust the ledger and the currency | CIf records could be altered, no one could trust the ledger. Trust exists because records cannot be altered. | |
| 4A cheat fails when the changed record no longer matches the shared copies | DA cheat that tries to remove a payment from the ledger, which cannot work if records cannot be altered | |
| 5Ben edits his old payment from 20 to 2 and the ledger accepts it | EIn a ledger with unalterable records, the edit would be rejected. Saved amounts cannot be changed afterwards. | |
| 6Records can be altered, so everyone can trust the ledger | Fif edited_copy != shared_copies: reject |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
immutable record — A record that cannot be changed once saved, so no one can cheat by editing an amount or deleting a payment, and everyone can trust the ledger.IF newAmount != record.amount THEN
OUTPUT "Change rejected"
ENDIFIF action = "DELETE" THEN
OUTPUT "Payments cannot be removed"
ENDIFledgerChanged ← FALSE
trusted ← NOT ledgerChangedsavedAmount ← 50
newAmount ← 500
cheatFailed ← newAmount != savedAmountledger.add(payment)
payment.locked ← TRUE