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: 01001000 01101001 | Received: 01001000 | AData loss: one character (byte) went missing in transmission | |
| 2Sent: CAT | Received: CT | BData loss: the second byte never arrived, so the message is shorter than the one sent | |
| 3Data loss means the received message is shorter than the sent message | CThe received message is longer, not shorter. An extra character means data gain, not data loss. | |
| 4Data loss happens when a byte that was sent never arrives | DSent: 11110000 10101010 00001111 | Received: 11110000 00001111 | |
| 5Sent: HELLO | Received: HELLOO (data loss) | EIf all 8 bytes arrived, nothing is missing. Data loss needs the received message to be shorter than the sent one. | |
| 6Sent: 8 bytes | Received: 8 bytes, but two bytes arrived missing, so data loss | Fsent = 5 bytes, received = 3 bytes |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
data loss — When some bits or bytes that were sent never arrive, so the message that is received is shorter than the one that was sent.sent ← "HELLO"
received ← "HELO"
OUTPUT LENGTH(sent) - LENGTH(received)sentCount ← 5
receivedCount ← 4
lostBytes ← sentCount - receivedCountIF LENGTH(received) < LENGTH(sent) THEN
OUTPUT "Data loss"
ENDIFIF lostBytes > 0 THEN
OUTPUT "Byte missing"
ENDIFsent ← "A1B2C3"
received ← "A1B2C"
lostBytes ← LENGTH(sent) - LENGTH(received)