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: 1, 2, 3, 4, 5 | Arrived: 1, 2, 3, 5, 4 | AThe packets arrived out of order because packet 5 reached the destination before packet 4 | |
| 2Packet 4: Route A (busy) | Packet 5: Route B (quiet) | BWrong: packet 4 has not necessarily been lost. It may have taken a slower route and still be on its way. | |
| 3The order in which packets arrive is not guaranteed, because each packet may take a different route | CPacket 5 can overtake packet 4 because it took a faster route | |
| 4The destination uses the packet number in each header to put out-of-order packets back into the correct order | Dsort(packets, by packet_number) | |
| 5Packets always arrive in the order they were sent | Earrival_order != sending_order | |
| 6Packet 5 arrived before packet 4, so packet 4 must be lost | FWrong: packets take different routes, so they may arrive in a different order. The order is not guaranteed. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
packets arrive out of order — Packets take different routes, so they may reach the destination in a different order from the one sent, e.g. packet 5 before packet 4. Order is not guaranteed.Sent 1 2 3 4 5, arrived 1 2 3 5 4IF arrivalOrder != sentOrder THENSORT packets BY packetNumberorderGuaranteed = FALSEIF packet5Arrived AND NOT packet4Arrived