CS FundamentalsHardHCL · Tech Mahindra pattern
What is the 16-bit Internet checksum (ones'-complement of the ones'-complement sum) of the words 0xF0F0 and 0x1F1F?
- A. 0x100F
- B. 0x1010
- C. 0xEFEF
- D. 0xEFF0
Correct answer: C. 0xEFEF
0xF0F0 + 0x1F1F = 0x1100F. Fold the carry: 0x100F + 0x1 = 0x1010. Complement: 0xEFEF. Skipping the carry wrap-around gives ~0x100F = 0xEFF0.
More Computer Networks questions
- Which set contains ONLY protocols that normally run over UDP?
- How many of the following statements about routing protocols are correct? 1. RIP uses hop count and treats 16 hops as unreachable. 2. OSPF…
- How many of the following statements about the CRC generator x³ + x + 1 (1011) are correct? 1. It detects every single-bit error. 2. It…
- A router forwards an IPv4 packet with no fragmentation, no NAT and no options. Which fields of the IP header does it change?
- Which OSI layer is responsible for data format translation, encryption and compression, so that the receiving application can understand…
- An email client sends an outgoing message to its mail server. Which protocol does it normally use for this step?