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 10110001 (even parity), received 10010101 | Aif bytes_received != bytes_expected: error | |
| 2Sent 11001100, received 11001010 | Bif parity_error: request_resend(byte) | |
| 3A parity error only tells you that a byte is wrong, not which bit, so the whole byte must be sent again | CParity cannot show which bit is wrong, so you cannot know bit 3 is the faulty one | |
| 4A single parity check cannot spot a missing byte unless the number of bytes is also counted | DTwo flipped bits cancel out, so the number of 1s keeps the same parity and the error is not found | |
| 5Two bits flip, parity changes, error is always found | ETwo bits flipped, so the number of 1s is still even and the parity check passes even though the data is wrong | |
| 6Parity error found, so flip bit 3 to fix it | FTwo bits swapped places, so the count of 1s is the same and the parity check cannot see the error |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
even number of bits change — A single parity check misses an error when an even number of bits change, because the count of 1s keeps the same parity. It also cannot show which bit is wrong.IF bitsChanged MOD 2 = 0 THEN
OUTPUT "Parity check misses it"
ENDIFsent ← "10110010"
received ← "10110001"
same ← ones(sent) = ones(received)IF parity <> expected THEN
OUTPUT "Error but position unknown"
ENDIFIF bytesReceived <> bytesSent THEN
OUTPUT "A byte was lost or gained"
ENDIFIF onesCount MOD 2 = 0 THEN
OUTPUT "Even parity, no error found"
ENDIF