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 | |
|---|---|---|
| 1timestamp: 2026-02-03 14:05:09 | ASORT records BY timestamp ASCENDING | |
| 2IF stamp_A < stamp_B THEN first ← A | BThe date and time added to a record to show exactly when it was made | |
| 3A time-stamp is added when the record is created, so it shows when the transaction was made | CThe transaction has no time-stamp, so nobody can tell when it was made or which happened first | |
| 4Sorting records by their time-stamps puts them in order, oldest first | DComparing time-stamps to find which record happened first | |
| 5transaction ← {from: Ava, to: Liam, amount: 50} | Erecord.timestamp ← NOW() | |
| 6timestamp: 2026-02-03 (date only) | FA time-stamp must include the time as well as the date, otherwise two transactions on the same day cannot be put in order |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
time-stamp — The date and time added to a record when it is created, showing when it was made. It puts records in order and shows which happened first.transaction.timestamp ← NOW()IF t1.timestamp < t2.timestamp THEN
OUTPUT "t1 happened first"
ENDIFSELECT * FROM ledger ORDER BY timestamp ASCDECLARE timestamp : DATE
timestamp ← NOW()newRecord ← CreateRecord(amount)
newRecord.timestamp ← NOW()
APPEND(ledger, newRecord)