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 | |
|---|---|---|
| 1packet trailer | AThe last part of a packet, which marks where the packet ends | |
| 2trailer: end_marker, check_value | Bif check_value(payload) != trailer.check: resend() | |
| 3The trailer is the last part of a packet, after the header and the payload | Cpacket = header + payload + trailer | |
| 4The trailer can hold error checking information that the receiver compares with the data it received | DA trailer holding an end of packet marker and error checking information | |
| 5packet = trailer + payload + header | EThe trailer is placed at the start of the packet. It should be the last part, after the payload, so the packet is header + payload + trailer. | |
| 6trailer = destination address, packet number | FThe destination address and packet number belong in the header, not the trailer. The trailer holds the end marker and error checking information. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
packet trailer — The last part of a packet. It marks where the packet ends and can hold error checking information, so the receiving device can check the data arrived correctly.packet = [header, payload, trailer]endPart = packet.trailerIF packet.trailer = "END" THEN
OUTPUT "Packet has ended"
ENDIFtrailer = [endMarker, errorCheck]IF trailer.errorCheck = "OK" THEN
OUTPUT "Data arrived correctly"
ENDIF