For n-bit two's complement representation, the range is β2^(nβ1) to 2^(nβ1) β 1. With n = 8, this evaluates to β2β· to 2β· β 1, i.e., β128 to +127. One more negative value is representable than positive due to the asymmetry in the coding. Thus, the range of 8-bit two's complement integers is β128 to +127.
Option A:
Option A correctly applies the general formula for two's complement bounds. It recognises that 10000000β encodes β128 and 01111111β encodes +127, covering all 256 possible bit patterns.
Option B:
Option B, β127 to +127, omits the extra negative value and would imply a redundant representation or a symmetric sign-magnitude system. This does not match two's complement behavior.
Option C:
Option C, β128 to +128, includes 257 distinct integers, which exceeds the 256 patterns available in 8 bits. It therefore cannot be the valid range.
Option D:
Option D, β127 to +128, is both shifted and symmetric in a way that is inconsistent with two's complement encoding. It incorrectly adds a positive value that is not representable.
Comment Your Answer
Please login to comment your answer.
Sign In
Sign Up
Answers commented by others
No answers commented yet. Be the first to comment!