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.
- A. Only one
- B. Only two
- C. Only three
- 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
- Using VLSM, the block 192.168.1.0/24 is split for three LANs needing 100, 50 and 20 hosts, assigning the largest LAN first from the lowest…
- An organisation owns 200.10.5.0/24, 200.10.6.0/24, 200.10.7.0/24 and 200.10.8.0/24. What is the smallest single CIDR block that covers all…
- A sender uses CRC generator 1011 and transmits the data 1101101 followed by its CRC. In transit the third bit from the left is flipped…
- A (7, 4) even-parity Hamming codeword (layout p1 p2 d3 p4 d5 d6 d7) is received as 0110111. Assuming at most one bit is in error, what are…
- A link has transmission time 1 ms per frame and one-way propagation delay 24.5 ms. Using Selective Repeat with sender window equal to…
- TCP Tahoe starts with cwnd = 1 MSS and ssthresh = 16 MSS. cwnd doubles each RTT in slow start (but is capped at ssthresh when doubling…