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:

  1. A.

    -2n-1 to (2n-1 - 1)

  2. B.

    -(2n-1 - 1)to (2n-1 - 1)

  3. C.

    -2n-1 to (2n-1 )

  4. 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.

Explore the full course: Isro