1,871 views
2 votes
2 votes
Which of the following statement is Incorrect for the range of n bits binary
numbers?
a. Range of unsigned numbers is 0 to 2n – 1.
b. Range of signed numbers is –2n – 1 + 1 to 2n – 1 – 1
c. Range of signed 1’s complement numbers is –2n – 1 + 1 to 2n – 1
d. Range of signed 2’s complement numbers is –2n – 1 to 2n – 1 – 1

 

i think b and c both are wrong

3 Answers

2 votes
2 votes

Both B and C are Wrong.

Range of Unsigned Representation of Binary Numbers: 0 to 2n-1

Range of Signed, 1's complement                               : -(2n-1-1) to (2n-1 -1)

2's complement Representation of binary number       :  -(2n-1) to (2n-1 -1)

For eg: take a binary string of length 3

unsigned (max,min)                  = 111,000 (7,0)

signed (max,min)                      = 011,111(3,-3)

1's complement(max,min)         = 011,100(3,-3)

2's complement(max,min)         = 011, 100(3,-4)

0 votes
0 votes
B and C considering that you mean exponential powers. 2^(n-1) not 2n-1

No related questions found