Free Practice Quiz Question List

TCP, UDP, and Transport Services Online Quiz Questions

Use this free practice quiz with 20 questions to review TCP, UDP, and Transport Services, test your knowledge, and prepare for your next test or exam.

20 questions
01
Choose one
1 point

Which statement correctly describes how TCP handles application message boundaries?

  1. A

    TCP preserves every application write as a separate message.

  2. B

    TCP does not preserve application message boundaries.

  3. C

    TCP cannot deliver data in order.

  4. D

    TCP does not retransmit lost data.

02
Choose one
1 point

A host receives traffic addressed to several applications that share one IP address. Which transport-layer function uses port information to deliver each item to the correct application?

  1. A

    Demultiplexing data to the appropriate socket and application

  2. B

    Encrypting the payload before transmission

  3. C

    Choosing the shortest IP routing path

  4. D

    Retransmitting every datagram that lacks an acknowledgment

03
Written response
1 point

TCP and UDP port fields are 16 bits wide. What is the largest port-number value, in decimal?

04
Fill in the blank
1 point

Complete the statement: provides a connection-oriented, reliable, service.

05
Choose one
1 point

An application sends three UDP datagrams separately. Which behavior should the receiving application expect if all three arrive?

  1. A

    UDP combines all sends into one continuous stream.

  2. B

    UDP preserves the boundaries of individual datagrams.

  3. C

    UDP guarantees that every datagram arrives in order.

  4. D

    UDP retransmits datagrams automatically when they are lost.

06
True or false
1 point

True or false: TCP flow control primarily protects the network path from overload, while TCP congestion control primarily protects the destination host's receive buffer.

  1. A

    True

  2. B

    False

07
Choose all
1 point

Which services are provided by TCP? Select all correct choices.

  1. A

    Retransmission of lost data

  2. B

    In-order delivery to the application

  3. C

    Suppression of duplicate application data

  4. D

    Limiting data to what the receiver can buffer

  5. E

    Preservation of separate application message boundaries

08
Written response
1 point

What is the standard TCP procedure used to synchronize initial sequence numbers and confirm that both endpoints can send and receive?

09
Fill in the blank
1 point

Complete the TCP model: usable sending window = (, ).

10
Choose all
1 point

Which capabilities are not provided by UDP itself? Select all correct choices.

  1. A

    Guaranteed delivery

  2. B

    Retransmission of lost datagrams

  3. C

    In-order delivery

  4. D

    Receiver flow control

  5. E

    General-purpose congestion control

  6. F

    Preservation of datagram boundaries

11
Choose one
1 point

Which application scenario is the best fit for UDP according to the material's decision example?

  1. A

    A software update that must arrive completely and in order

  2. B

    A database result that cannot tolerate missing bytes

  3. C

    Live game-character positions sent every 20 milliseconds

  4. D

    A file transfer requiring reliable delivery

12
Open ended
1 point

An application has two components: a software-update downloader and a game that sends a character's position every 20 milliseconds. Recommend TCP or UDP for each component and justify both choices using reliability, ordering, latency, and application-level responsibilities.

13
Choose one
1 point

Which statement best describes QUIC's relationship to UDP?

  1. A

    UDP cannot support reliability or congestion control at any layer.

  2. B

    QUIC runs over UDP and supplies substantial transport behavior above it.

  3. C

    QUIC replaces IP and therefore does not use transport-layer packets.

  4. D

    QUIC is simply TCP with a different port number.

14
Choose one
1 point

Which property distinguishes UDP from TCP when an application sends three separate messages?

  1. A

    UDP combines all sends into one continuous stream.

  2. B

    UDP preserves each datagram as a separate message.

  3. C

    UDP guarantees that every datagram arrives in order.

  4. D

    UDP requires a three-way handshake before sending.

15
Choose one
1 point

What does a transport-layer port number identify?

  1. A

    A port number identifies an application endpoint on a host.

  2. B

    A port number identifies the physical route between two networks.

  3. C

    A port number guarantees that a packet will be delivered.

  4. D

    A port number replaces the destination IP address.

16
True or false
1 point

True or false: Calling a UDP socket “connected” causes the remote peer to maintain TCP-like connection state.

  1. A

    True

  2. B

    False

17
Written response
1 point

A TCP receiver has successfully received every byte through sequence number 4,999. What acknowledgment sequence number should it send?

18
Choose one
1 point

A TCP receiver’s buffer is nearly full, although the network path is otherwise lightly loaded. Which mechanism should limit the sender’s outstanding data?

  1. A

    The sender is sending to too many different destination ports.

  2. B

    TCP flow control, using the receiver’s advertised receive window.

  3. C

    TCP congestion control, based only on network-path capacity.

  4. D

    TCP retransmission control, which resends every segment.

19
True or false
1 point

True or false: After one endpoint sends a TCP FIN, the peer is still allowed to send data until the peer also closes its own direction of the connection.

  1. A

    True

  2. B

    False

20
Written response
1 point

A server receives traffic for a nonexistent TCP connection and must terminate the exchange abruptly. What three-letter TCP flag abbreviation should it use?