A computer with 32 bit word size uses 2s complement to represent numbers. The…
2017
A computer with 32 bit word size uses 2s complement to represent numbers. The range of integers that can be represented by this computer is
- A.
–232 to 232
- B.
–231 to 232-1
- C.
–231 to 231-1
- D.
–231-1 to 232-1
Attempted by 203 students.
Show answer & explanation
Correct answer: C
For a 32-bit word size using two's complement representation, the range of representable integers is determined by the number of bits (n=32). The minimum value is -2^(n-1) and the maximum value is 2^(n-1) - 1. Substituting n=32, the range is from -2^31 to 2^31 - 1.
A video solution is available for this question — log in and enroll to watch it.