CS FundamentalsEasyTCS NQT · Infosys interview pattern
What are the minimum header sizes of a UDP datagram and a TCP segment?
- A. UDP 8 bytes, TCP 20 bytes
- B. UDP 20 bytes, TCP 20 bytes
- C. UDP 8 bytes, TCP 60 bytes
- D. UDP 4 bytes, TCP 20 bytes
Correct answer: A. UDP 8 bytes, TCP 20 bytes
UDP has a fixed 8-byte header (ports, length, checksum). TCP needs at least 20 bytes and up to 60 bytes with options. 60 bytes is TCP’s maximum, not minimum.
More Computer Networks questions
- What is the network address of the subnet that contains the host 192.168.10.77/27?
- Which DNS record type maps a host name to an IPv6 address?
- A switch receives a frame whose destination MAC address is not yet in its MAC address table. What does the switch do?
- A video-calling app sends small voice packets every 20 ms. Why do such apps usually prefer UDP over TCP for the media stream?
- What is the broadcast address of the subnet containing 10.20.30.40/13?
- Which address is in the same subnet as 172.16.8.1/21?