What is the 8-bit two's complement binary representation of the decimal integer -6?
Answer and explanation
Correct answer: B. 11111010
- Step 1: Write +6 in 8-bit binary: `00000110`.
- 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.
More Computer Systems, Networks and Cybersecurity questions
- What is the decimal equivalent of the hexadecimal number 2F₁₆?
- In computer architecture, which component of the central processing unit (CPU) directs system operations and manages the fetch-decode-execut…
- Which layer of the OSI reference model is responsible for end-to-end process-to-process communication, flow control, and error recovery usin…
- Which cryptographic algorithm is an asymmetric (public-key) cipher commonly used for secure key exchange and digital signatures?
- In Boolean algebra, what is the simplified equivalent of the expression NOT(A AND B) according to De Morgan's laws?
- How many total usable host IP addresses are available in an IPv4 subnet configured with the subnet mask /28 (255.255.255.240)?