What is the 8-bit two's complement binary representation of the decimal integer -6?

Answer and explanation

Correct answer: B. 11111010

  1. Step 1: Write +6 in 8-bit binary: `00000110`.
  2. Step 2: Invert all bits (one's complement): `11111001`. Add 1: `11111001 + 1 = 11111010`.
Answer
11111010.
Why not the others: `11111001` is one's complement; `10000110` is signed-magnitude; `00000110` is positive +6.

Practise more Computer Systems, Networks and Cybersecurity.

Free questions with an explanation for every one, and full timed EmSAT Achieve (UAE) mock tests.