109k views
1 vote
What is the range of numbers that can be represented with n-bit two's complement binary? Provide the range for 8-bit binary.

a. The range is from -2⁽ⁿ⁻¹⁾ to 2⁽ⁿ⁻¹⁾ - 1; for 8-bit binary, the range is from -128 to 127.
b. The range is from -2⁽ⁿ⁻¹⁾ to 2⁽ⁿ⁻¹⁾; for 8-bit binary, the range is from -128 to 127.
c. The range is from -2ⁿ to 2ⁿ - 1; for 8-bit binary, the range is from -127 to 127.
d. The range is from -2ⁿ to 2ⁿ; for 8-bit binary, the range is from -127 to 127.

1 Answer

5 votes

Final answer:

The range for an n-bit two's complement binary system is from -2^(n-1) to 2^(n-1) - 1, and for 8-bit binary, it is from -128 to 127.

Step-by-step explanation:

The range of numbers that can be represented with an n-bit two's complement binary system is indeed from -2(n-1) to 2(n-1) - 1. For an 8-bit binary system, the range is from -128 to 127. Therefore, the correct answer is a. The range is from -2(n-1) to 2(n-1) - 1; for 8-bit binary, the range is from -128 to 127.

User Vladimir Baranov
by
7.4k points