Let A = 1111 1010 and B = 0000 1010 be two 8-bit 2's complement numbers. What…
2026
Let A = 1111 1010 and B = 0000 1010 be two 8-bit 2's complement numbers. What will their product in 2's complement be?
- A.
1101 0101
- B.
1010 0101
- C.
1100 0100
- D.
1001 1100
Attempted by 4 students.
Show answer & explanation
Correct answer: C
First, convert the binary numbers to decimal. A = 1111 1010 is negative (MSB=1). Invert bits to get 0000 0101, add 1 to get 0000 0110 (6), so A = -6. B = 0000 1010 is positive, equal to 10. Multiply: -6 × 10 = -60. Convert -60 back to 8-bit 2's complement: Binary of 60 is 0011 1100. Invert to get 1100 0011, add 1 to get 1100 0100.