0
0
Computer Networksknowledge~20 mins

TCP vs UDP comparison in Computer Networks - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
TCP vs UDP Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Comparison
intermediate
2:00remaining
Key Difference Between TCP and UDP
Which of the following best describes a fundamental difference between TCP and UDP?
AUDP establishes a connection before sending data; TCP sends data without establishing a connection.
BTCP is connection-oriented, ensuring reliable data transfer; UDP is connectionless and does not guarantee delivery.
CTCP is faster than UDP because it has less overhead.
DUDP guarantees data order and error checking, while TCP does not.
Attempts:
2 left
💡 Hint
Think about whether the protocols establish a connection and how they handle data delivery.
🧠 Conceptual
intermediate
2:00remaining
Use Cases for UDP
Why might an application choose UDP over TCP?
ABecause UDP is faster and suitable for real-time applications where speed is more important than reliability.
BBecause UDP provides guaranteed delivery and error correction.
CBecause UDP requires a connection setup which improves security.
DBecause UDP automatically resends lost packets.
Attempts:
2 left
💡 Hint
Consider applications like live video or gaming where delays are bad.
📋 Factual
advanced
2:00remaining
Port Numbers in TCP and UDP
Which statement about port numbers in TCP and UDP is correct?
APort numbers are not used in UDP.
BTCP and UDP use completely different port number ranges.
CA port number can only be used by either TCP or UDP, never both.
DTCP and UDP can use the same port numbers independently for different services.
Attempts:
2 left
💡 Hint
Think about how services like DNS use UDP and TCP on the same port number.
Reasoning
advanced
2:00remaining
Impact of Protocol Choice on Data Transmission
If a file transfer application uses UDP instead of TCP, what is the most likely outcome?
AThe file will always transfer faster and without errors.
BThe file transfer will be slower because UDP adds extra error checking.
CThe file may transfer faster but could be incomplete or corrupted due to lost packets.
DThe file transfer will be secure because UDP encrypts data by default.
Attempts:
2 left
💡 Hint
Consider what UDP does not provide compared to TCP.
🔍 Analysis
expert
2:00remaining
Analyzing Protocol Behavior Under Network Congestion
During heavy network congestion, how do TCP and UDP behave differently?
ATCP reduces its sending rate to avoid congestion; UDP continues sending at the same rate regardless of congestion.
BUDP reduces its sending rate to avoid congestion; TCP continues sending at the same rate regardless of congestion.
CBoth TCP and UDP reduce their sending rates equally during congestion.
DNeither TCP nor UDP adjust their sending rates during congestion.
Attempts:
2 left
💡 Hint
Think about which protocol is designed to be 'friendly' to the network.