What is the two's complement value of the binary byte 11110000 interpreted as a signed 8-bit integer?
Answer and explanation
Correct answer: B. -16
- Step 1: The leading bit is 1, indicating a negative signed integer.
- Step 2: Compute its magnitude by inverting bits and adding 1: `11110000` inverted is `00001111`. Adding 1 yields `00010000` (). Thus, the signed value is .
Answer
-16.
Why not the others: +240 is the unsigned decimal interpretation; -240 and -112 miscalculate the two's complement magnitude.
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âŠ
- What is the 8-bit two's complement binary representation of the decimal integer -6?
- 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?