CS FundamentalsHardProduct-company MCQ pattern

How many of the following statements about TCP and UDP are correct? 1. UDP header is 8 bytes; the minimum TCP header is 20 bytes. 2. TCP preserves message boundaries, so two send() calls of 100 bytes are always read as two 100-byte reads. 3. Both TCP and UDP carry a checksum that covers a pseudo-header containing the IP addresses. 4. UDP can be used for multicast, but TCP cannot.

  1. A. Only one
  2. B. Only two
  3. C. Only three
  4. D. All four

Correct answer: C. Only three

1 is true (8 vs 20–60 bytes). 2 is false: TCP is a byte stream and may merge or split the data; UDP is the one that preserves datagram boundaries. 3 is true (the UDP checksum is optional in IPv4 but still uses the pseudo-header). 4 is true, since TCP is strictly one-to-one. So three are correct.

More Computer Networks questions

Exams that ask this topic