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 | |
|---|---|---|
| 1ARQ | AIn ARQ the receiver must reply. If no reply arrives before the timeout, the sender resends rather than assuming success | |
| 2IF error_found THEN SEND NAK | BWHILE reply <> ACK SEND data ENDWHILE | |
| 3The sender waits for a reply after sending, and resends automatically if no reply arrives before the timeout | CThe receiver checks the data (e.g. with parity or a checksum) and, if it finds an error, replies with a negative acknowledgement so the sender resends | |
| 4The sender keeps resending until the receiver confirms the data was received correctly with a positive acknowledgement | DREPEAT SEND data WAIT timeout UNTIL reply_received | |
| 5Receiver gets bad data -> receiver says nothing -> sender assumes it was fine and stops | EAutomatic repeat query: the receiver replies to say if data arrived without error, and the sender automatically resends data that did not | |
| 6Receiver detects an error -> receiver fixes the data itself -> no resend needed | FARQ does not correct errors at the receiver. The receiver only detects the error and replies, and the sender resends the data |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
ARQ — Automatic repeat query: the receiver checks data for errors and replies. If the data is bad or no reply arrives, the sender automatically resends it until it is received correctly.SEND packet
WAIT FOR reply
IF reply = NAK THEN SEND packetREPEAT
SEND packet
UNTIL reply = ACKIF errorFound = TRUE THEN SEND NAK
ELSE SEND ACKSEND packet
IF no reply within timeout THEN SEND packetSEND packet
WHILE reply <> ACK
RESEND packet