Free Practice Quiz Question List

5 Transport Protocols: TCP and UDP Online Quiz Questions

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

20 questions
01
True or false
1 point

True or false: If an application makes two separate writes over TCP, the receiver is guaranteed to receive two separate messages.

  1. A

    True

  2. B

    False

02
Choose one
1 point

An application transfers a file and needs missing bytes retransmitted and the bytes delivered in order. Which transport protocol best fits this requirement?

  1. A

    TCP

  2. B

    UDP

  3. C

    Either protocol guarantees this equally

03
Fill in the blank
1 point

TCP presents application data as a continuous , rather than as separate messages.

04
Written response
1 point

What is the operating system's process of directing incoming transport data to the appropriate application called?

05
Choose one
1 point

A client contacts a service at its known destination port. Which description best fits the client's port use in this exchange?

  1. A

    The client uses the known service port as its temporary source port.

  2. B

    The client uses a temporary source port and sends to the service's known destination port.

  3. C

    The client must use the same port number for source and destination.

06
True or false
1 point

True or false: When UDP detects an error with its checksum, UDP itself repairs the data and retransmits it.

  1. A

    True

  2. B

    False

07
Choose all
1 point

Select all the services TCP provides as part of its transport service.

  1. A

    Retransmitting data after loss

  2. B

    Guaranteeing that each application write arrives as a separate message

  3. C

    Receiver flow control

  4. D

    Network congestion control

08
Fill in the blank
1 point

IANA classifies ports 49152–65535 as , a range commonly used for temporary local endpoints.

09
Written response
1 point

What is the highest port number in the TCP and UDP port spaces?

10
Choose one
1 point

An application sends two writes over a TCP connection, but the receiver may get their bytes together or in pieces. What must the application protocol do if it needs to identify the original messages?

  1. A

    TCP will always deliver one message for each write.

  2. B

    TCP adds a message delimiter after every write.

  3. C

    The application protocol must define how the receiver recognizes message boundaries.

11
Choose all
1 point

Select all statements that accurately describe UDP's transport behavior.

  1. A

    It preserves datagram boundaries.

  2. B

    It guarantees every datagram arrives exactly once and in order.

  3. C

    It does not guarantee delivery, ordering, or uniqueness.

  4. D

    It includes built-in congestion control.

12
Open ended
1 point

A real-time voice application is deciding whether to use UDP. Explain why UDP may fit its handling of late audio packets, and identify one transport responsibility the application must still account for.

13
Choose one
1 point

A client needs a temporary local endpoint for an exchange. Which IANA port category is commonly used for that purpose?

  1. A

    System Ports

  2. B

    Dynamic Ports

  3. C

    User Ports

14
Written response
1 point

If a program using UDP requires reliable delivery, which component must implement that behavior?

15
Choose one
1 point

What role does a transport-layer port number play when data reaches a host?

  1. A

    Identify the network interface for delivery

  2. B

    Identify the application endpoint on a host

  3. C

    Guarantee that data arrives in order

  4. D

    Choose the route through the network

16
Written response
1 point

How many bits wide is the port-number space for TCP or UDP? Enter the exact number of bits.

17
Choose one
1 point

A host receives transport data addressed to a particular application endpoint. Which operating-system function directs that incoming data to the appropriate application?

  1. A

    Combine outgoing data from different applications onto the network

  2. B

    Assign an IP address to each application

  3. C

    Deliver incoming data to the appropriate application

  4. D

    Retransmit missing data to the sender

18
Choose one
1 point

An application must use a transport protocol that establishes a connection before data exchange. Which protocol fits that requirement?

  1. A

    TCP endpoints establish a connection before exchanging data.

  2. B

    TCP sends independent datagrams without transport connection setup.

  3. C

    TCP preserves each application write as a separate message.

  4. D

    TCP guarantees that every packet takes the same network path.

19
Choose one
1 point

Which statement correctly describes how UDP presents application data?

  1. A

    TCP presents a continuous byte stream rather than separate messages.

  2. B

    TCP preserves every application write as a separate message.

  3. C

    UDP combines all datagrams into one continuous byte stream.

  4. D

    UDP preserves message boundaries by sending independent datagrams.

20
True or false
1 point

True or false: UDP guarantees that delivered datagrams arrive in the order they were sent.

  1. A

    True

  2. B

    False