The range of integers that can be represented by n bit 2’s complement number…
2009
The range of integers that can be represented by n bit 2’s complement number system is:
- A.
-2n-1 to (2n-1 - 1)
- B.
-(2n-1 - 1)to (2n-1 - 1)
- C.
-2n-1 to (2n-1 )
- D.
-(2n-1 + 1)to (2n-1 - 1)
Attempted by 76 students.
Show answer & explanation
Correct answer: A
In an n-bit 2's complement system, the most significant bit acts as a sign bit with a weight of -2^(n-1). The remaining n-1 bits contribute positive values up to 2^(n-1)-1. Thus, the representable range is from -2^(n-1) to 2^(n-1)-1.
A video solution is available for this question — log in and enroll to watch it.