Question discussion

The 16-bit words 0xFFFF and 0x0002 are summed in one's-complement arithmetic and complemented to form an Internet checksum. The checksum is

1541Medium DSSSB TGT Computer Science 0 replies 1 views
0

The 16-bit words 0xFFFF and 0x0002 are summed in one's-complement arithmetic and complemented to form an Internet checksum. The checksum is

  • A0x0002
  • B0xFFFD
  • C0xFFFE
  • D0x0001
Correct answer: B

Explanation

0xFFFF + 0x0002 = 0x10001; folding the carry back gives 0x0002, and its complement is 0xFFFD.

Discussion 0

Nobody has replied yet. Start the discussion!