ISRO Computer Science (CSE) 2015 - Question 2

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

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)
  • B. -2^(n-1 - 1) to (2^(n-1) - 1)
  • C. -2^(n-1) to 2^(n-1)
  • D. -2^(n-1) to (2^(n-1) - 1)

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

Explanation: In 2's complement, the range is from -2^(n-1) to +2^(n-1) - 1. For example, 8-bit range is -128 to +127.

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