MCQ

M4607 · [1]
A receiver stores the sequence numbers of arriving packets in the array PACKETS = [1, 2, 4, 5, 3]. The pseudocode below models a TCP receiver that outputs only packets delivered in order and buffers the rest. EXPECTED = 1 loop N from 0 to 4 if PACKETS[N] = EXPECTED then output PACKETS[N] EXPECTED = EXPECTED + 1 end if end loop What is the output?
Checks instantly · free · no account Keys A–D to answer

Browse all questions in this subject

IBMarker is not affiliated with the International Baccalaureate Organization (IBO). All questions are original, written in the style of the IB Diploma Programme.

Next question →
free · no account