837 views
3 votes
3 votes
The Decimal equivalent of 2’s complement representation of 8 bit integer is most positive when
except _________
(A) MSB are zeros

(B) LSB are zeros
(C) MSB are ones

(D) LSB are ones

1 Answer

0 votes
0 votes

Range of n-bit 2's complement representation is -2(n-1) to +{2(n-1) -1}

For n=8, maximum positive value is 2(8-1) -1 which is 127

Now, in 8 bits, 127 = (01111111)2 {$\because$ non-negative numbers are represented by their n-bit binary equivalents}

So, except MSB all are 1's. The options are not correctly given. It should be except MSB all are ones.

Related questions

0 votes
0 votes
0 answers
1
mehul vaidya asked Oct 14, 2018
239 views
01001101 A+11101001 B - 100110110 CBoth A and B are in 2's compliment formMy doubt is in C what sign bit is it 8th position(0) or 9th position (1)?
0 votes
0 votes
2 answers
2
Hira Thakur asked Jul 7, 2018
436 views
2's complement (2's complement) = original number,in above fig in the 2nd stage we get the original number after that we again take 2's compliment??3 times 2's complement...
2 votes
2 votes
2 answers
3
0 votes
0 votes
1 answer
4
Aghori asked Nov 13, 2017
2,342 views
I think it is $8$ bits including sign bit. But given answer is $7$ bits. Am I wrong?