ISRO Computer Science (CSE) 2009 - Question 18

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2009

The range of integers that can be represented by an n-bit 2's complement number system is

  • A. -2^(n-1) to (2^(n-1) - 1)
  • B. -(2^(n-1) - 1) to (2^(n-1) - 1)
  • C. -2^(n-1) to 2^(n-1)
  • D. -(2^(n-1) + 1) to (2^(n-1) - 1)

Answer: A. -2^(n-1) to (2^(n-1) - 1)

Explanation: Standard range for 2's complement. For n=8, -128 to 127.

| | All questions of ISRO Computer Science (CSE) 2009