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 | |
|---|---|---|
| 1NAK | AIF message = NAK THEN resend same packet | |
| 2IF check fails THEN send NAK | BWhen the receiver's error check fails, it sends a negative acknowledgement back to the sender | |
| 3A NAK tells the sender to resend the same data because the received data had an error | CAfter a NAK the sender must resend the same data, not move on to the next packet, because the first copy arrived with an error. | |
| 4The receiver sends a NAK back to the sender only when the error check fails | DIF parity check fails THEN send NAK | |
| 5IF check passes THEN send NAK | EA NAK is sent when the check fails, not when it passes. A pass means the data is fine, so no NAK is needed. | |
| 6IF message = NAK THEN send next packet | FThe short name for a negative acknowledgement, a message from the receiver saying the data arrived with an error |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
negative acknowledgement — A message (NAK) the receiver sends to the sender when the error check fails, telling it the data arrived with an error so the sender must resend the same data.IF errorFound THEN
SEND "NAK"
ENDIFIF errorFound THEN
SEND "NAK"
ENDIFIF reply = "NAK" THEN
SEND sameData
ENDIFIF checkOK THEN SEND "ACK"
ELSE SEND "NAK"
ENDIFIF errorFound = TRUE THEN
SEND "NAK"
ENDIF