What does TCP stand for and what is its main purpose?
TCP stands for Transmission Control Protocol. It is used to send data reliably between computers by establishing a connection and ensuring all data arrives correctly.
Click to reveal answer
beginner
What does UDP stand for and how is it different from TCP?
UDP stands for User Datagram Protocol. Unlike TCP, it sends data without establishing a connection and does not guarantee delivery, making it faster but less reliable.
Click to reveal answer
intermediate
Which protocol, TCP or UDP, is better for streaming videos and why?
UDP is better for streaming videos because it sends data quickly without waiting for confirmation, which helps avoid delays even if some data is lost.
Click to reveal answer
intermediate
Name two key features of TCP that make it reliable.
TCP uses connection establishment (handshake) and error checking with acknowledgments to ensure data is sent and received correctly.
Click to reveal answer
intermediate
Why might a game developer choose UDP over TCP for online multiplayer games?
Because UDP is faster and has less delay, it is preferred for games where quick updates are more important than perfect accuracy of every message.
Click to reveal answer
Which protocol guarantees that all data packets arrive in order?
ATCP
BUDP
CBoth TCP and UDP
DNeither TCP nor UDP
✗ Incorrect
TCP ensures data packets arrive in order by establishing a connection and using sequence numbers.
Which protocol is connectionless?
AUDP
BTCP
CBoth TCP and UDP
DNone
✗ Incorrect
UDP is connectionless, meaning it sends data without setting up a connection first.
For which of these applications is UDP most suitable?
AFile transfer
BEmail
CLive video streaming
DWeb browsing
✗ Incorrect
Live video streaming benefits from UDP's speed and low delay, even if some data is lost.
Which protocol uses a handshake process to start communication?
AUDP
BTCP
CBoth
DNeither
✗ Incorrect
TCP uses a handshake to establish a connection before sending data.
Which protocol is generally faster but less reliable?
ATCP
BNeither
CBoth are equally fast
DUDP
✗ Incorrect
UDP is faster because it does not check for errors or confirm delivery, making it less reliable.
Explain the main differences between TCP and UDP in simple terms.
Think about how each protocol handles sending data and reliability.
You got /4 concepts.
Describe a real-life situation where you would prefer to use UDP over TCP and why.
Consider activities where quick updates matter more than perfect accuracy.
You got /3 concepts.
Practice
(1/5)
1. Which of the following is a key characteristic of TCP compared to UDP?
easy
A. It is used mainly for streaming videos.
B. It is faster but may lose data.
C. It does not establish a connection before sending data.
D. It guarantees data delivery and order.
Solution
Step 1: Understand TCP's main feature
TCP ensures reliable communication by guaranteeing data delivery and maintaining the order of packets.
Step 2: Compare with UDP characteristics
UDP is faster but does not guarantee delivery or order, unlike TCP.
Final Answer:
It guarantees data delivery and order. -> Option D
Quick Check:
TCP = Reliable and ordered delivery [OK]
Hint: TCP is reliable; UDP is faster but less reliable [OK]
Common Mistakes:
Confusing UDP as reliable
Thinking TCP is faster than UDP
Assuming UDP guarantees order
2. Which syntax correctly describes the connection type of UDP?
easy
A. Connectionless protocol
B. Connection-oriented protocol
C. Reliable data transfer protocol
D. Protocol that uses handshaking
Solution
Step 1: Identify UDP connection type
UDP is a connectionless protocol, meaning it sends data without establishing a connection first.
Step 2: Contrast with TCP
TCP is connection-oriented and uses handshaking to establish a connection before data transfer.
Final Answer:
Connectionless protocol -> Option A
Quick Check:
UDP = Connectionless [OK]
Hint: UDP sends data without connection setup [OK]
Common Mistakes:
Thinking UDP uses handshaking
Confusing UDP with TCP's connection type
Assuming UDP guarantees delivery
3. Consider this scenario: A video call uses UDP instead of TCP. What is the most likely outcome?
medium
A. The call will be slow but never lose any data.
B. The call will establish a connection before sending data.
C. The call may have some lost or out-of-order packets but will be faster.
D. The call will guarantee all data arrives correctly and in order.
Solution
Step 1: Understand UDP behavior in real-time apps
UDP is used in real-time apps like video calls because it is faster but may lose or reorder packets.
Step 2: Compare with TCP's behavior
TCP guarantees delivery and order but is slower, which can cause delays in live calls.
Final Answer:
The call may have some lost or out-of-order packets but will be faster. -> Option C
Quick Check:
UDP = Faster but less reliable [OK]
Hint: UDP favors speed over reliability in live streams [OK]
Common Mistakes:
Assuming UDP guarantees delivery
Thinking TCP is better for live video calls
Confusing connection setup with UDP
4. A developer wrote this statement: "UDP guarantees data arrives in order." What is wrong with this statement?
medium
A. UDP does not guarantee data order or delivery.
B. UDP is slower than TCP.
C. UDP requires a connection before sending data.
D. UDP uses handshaking to ensure reliability.
Solution
Step 1: Analyze UDP's delivery guarantees
UDP does not guarantee that data packets arrive in order or even arrive at all.
Step 2: Identify the incorrect claim
The statement incorrectly claims UDP guarantees order, which is false.
Final Answer:
UDP does not guarantee data order or delivery. -> Option A
Quick Check:
UDP = No order or delivery guarantee [OK]
Hint: UDP is unreliable; no order guarantee [OK]
Common Mistakes:
Confusing UDP with TCP reliability
Assuming UDP uses connection setup
Believing UDP is slower than TCP
5. You need to design a system that streams live sports scores with minimal delay, but occasional lost updates are acceptable. Which protocol should you choose and why?
hard
A. TCP, because it guarantees all data arrives in order.
B. UDP, because it is faster and tolerates some data loss.
C. TCP, because it does not require connection setup.
D. UDP, because it guarantees reliable delivery.
Solution
Step 1: Identify system requirements
The system needs minimal delay and can tolerate some lost data, typical for live updates.
Step 2: Match protocol to requirements
UDP is faster and allows some data loss, making it suitable for live streaming where speed matters more than perfect accuracy.
Step 3: Eliminate incorrect options
TCP guarantees delivery but is slower and requires connection setup; UDP does not guarantee delivery but is faster.
Final Answer:
UDP, because it is faster and tolerates some data loss. -> Option B
Quick Check:
Live updates = UDP for speed and tolerance [OK]
Hint: Use UDP for speed when some loss is okay [OK]
Common Mistakes:
Choosing TCP for real-time updates needing speed
Assuming UDP guarantees delivery
Ignoring connection setup overhead
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.