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 | |
|---|---|---|
| 1sent: HELLO received: HELLO | AThe extra letter S means data was gained, so the data is not complete and integrity is lost. | |
| 2sent: HELLO received: HELO | Bsent: 1011 received: 1011 | |
| 3Correct data means nothing was changed in transit, so each character still matches what was sent | COne bit changed from 1 to 0, so the data is not correct and integrity is lost. | |
| 4Protocols protect integrity by adding checks, such as a parity bit, that help spot damaged data | Ddata = 1011 + parity bit 1 | |
| 5sent: CAT received: CATS -> integrity kept | EThe data has integrity: it arrived complete and correct, exactly as it was sent | |
| 6sent: 1100 received: 1000 -> integrity kept | FIntegrity is lost: the data is not complete because a letter went missing |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
data integrity — Data has integrity when it arrives complete (nothing missing or extra) and correct (nothing changed) compared with what was sent.sent ← "HELLO"
received ← "HELLO"
IF received = sent THEN integrity ← TRUEsentNum ← 5
gotNum ← 4
IF gotNum < sentNum THEN missing ← TRUEsent ← "1011"
received ← "1001"
IF received ≠ sent THEN changed ← TRUEsentNum ← 5
gotNum ← 6
IF gotNum > sentNum THEN extra ← TRUEIF received = sent THEN OUTPUT "Intact"
ELSE OUTPUT "Resend needed"
ENDIF