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?

  1. A. 0x100F
  2. B. 0x1010
  3. C. 0xEFEF
  4. 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

Exams that ask this topic