True or false: If an application makes two separate writes over TCP, the receiver is guaranteed to receive two separate messages.
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.
An application transfers a file and needs missing bytes retransmitted and the bytes delivered in order. Which transport protocol best fits this requirement?
- A
TCP
- B
UDP
- C
Either protocol guarantees this equally
TCP presents application data as a continuous , rather than as separate messages.
What is the operating system's process of directing incoming transport data to the appropriate application called?
A client contacts a service at its known destination port. Which description best fits the client's port use in this exchange?
- A
The client uses the known service port as its temporary source port.
- B
The client uses a temporary source port and sends to the service's known destination port.
- C
The client must use the same port number for source and destination.
True or false: When UDP detects an error with its checksum, UDP itself repairs the data and retransmits it.
- A
True
- B
False
Select all the services TCP provides as part of its transport service.
- A
Retransmitting data after loss
- B
Guaranteeing that each application write arrives as a separate message
- C
Receiver flow control
- D
Network congestion control
IANA classifies ports 49152–65535 as , a range commonly used for temporary local endpoints.
What is the highest port number in the TCP and UDP port spaces?
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?
- A
TCP will always deliver one message for each write.
- B
TCP adds a message delimiter after every write.
- C
The application protocol must define how the receiver recognizes message boundaries.
Select all statements that accurately describe UDP's transport behavior.
- A
It preserves datagram boundaries.
- B
It guarantees every datagram arrives exactly once and in order.
- C
It does not guarantee delivery, ordering, or uniqueness.
- D
It includes built-in congestion control.
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.
A client needs a temporary local endpoint for an exchange. Which IANA port category is commonly used for that purpose?
- A
System Ports
- B
Dynamic Ports
- C
User Ports
If a program using UDP requires reliable delivery, which component must implement that behavior?
What role does a transport-layer port number play when data reaches a host?
- A
Identify the network interface for delivery
- B
Identify the application endpoint on a host
- C
Guarantee that data arrives in order
- D
Choose the route through the network
How many bits wide is the port-number space for TCP or UDP? Enter the exact number of bits.
A host receives transport data addressed to a particular application endpoint. Which operating-system function directs that incoming data to the appropriate application?
- A
Combine outgoing data from different applications onto the network
- B
Assign an IP address to each application
- C
Deliver incoming data to the appropriate application
- D
Retransmit missing data to the sender
An application must use a transport protocol that establishes a connection before data exchange. Which protocol fits that requirement?
- A
TCP endpoints establish a connection before exchanging data.
- B
TCP sends independent datagrams without transport connection setup.
- C
TCP preserves each application write as a separate message.
- D
TCP guarantees that every packet takes the same network path.
Which statement correctly describes how UDP presents application data?
- A
TCP presents a continuous byte stream rather than separate messages.
- B
TCP preserves every application write as a separate message.
- C
UDP combines all datagrams into one continuous byte stream.
- D
UDP preserves message boundaries by sending independent datagrams.
True or false: UDP guarantees that delivered datagrams arrive in the order they were sent.
- A
True
- B
False