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 = 10110010, echo = 10110011 | ABoth trips damaged the same bit in the same way, so the errors cancel out and the echo check misses them. | |
| 2sent = 10110010, arrived = 10110110, echo = 10110010 | BdataSent = 1000 bytes, echoReturned = 1000 bytes, total = 2000 bytes | |
| 3The data arrived correctly, but the copy sent back was corrupted, so the sender sees a mismatch and wrongly thinks the original data is bad. | Carrived = 01101100, echo = 01101101, sent = 01101100 | |
| 4An echo check doubles the amount of data sent, because every item is sent once and then sent back again. | DA matching echo does not prove the data is correct, because both trips can be damaged in the same way so that the errors cancel out. | |
| 5if echo != sent: print('Error on the way there') | EA mismatch does not show where the error happened. It could have occurred on the way there or on the way back, so the code cannot name the outbound trip. | |
| 6if echo == sent: print('Data is definitely correct') | FThe echo differs from the original, but the check cannot tell whether the damage happened on the way there or on the way back. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
echo check limit — An echo check cannot tell if the error happened on the way there or back, and it can miss errors if both trips are damaged the same way.sent ← 10110010
echo ← 10110011
IF sent ≠ echo THEN OUTPUT "Resend"sent ← 1010
echo ← 1010
IF sent = echo THEN OUTPUT "Looks OK"size ← 8
total ← size * 2
OUTPUT totalIF sent ≠ echo THEN
OUTPUT "Error there or back"
ENDIFerrorWhere ← "unknown"
IF sent ≠ echo THEN
OUTPUT errorWhere