210 views
4 4 votes

Which of the following $2$’s complement bit strings represents the smallest decimal value? Each bit string must be interpreted using its own given bit-width.

  1. $1001011$ as a $7$-bit number
     
  2. $11001010$ as an $8$-bit number
     
  3. $111000101$ as a $9$-bit number
     
  4. $101111$ as a $6$-bit number

2 Answers

1 1 vote

In an $n$-bit $2$’s complement system, if the leftmost bit is $1$, the number is negative.

For a negative $n$-bit number, signed value $=$ unsigned value $-2^n$.


A: $1001011$ is a $7$-bit number.

Unsigned value $=64+8+2+1=75$.

Signed value $=75-2^7=75-128=-53$.


B: $11001010$ is an $8$-bit number.

Unsigned value $=128+64+8+2=202$.

Signed value $=202-2^8=202-256=-54$.


C: $111000101$ is a $9$-bit number.

Unsigned value $=256+128+64+4+1=453$.

Signed value $=453-2^9=453-512=-59$.


D: $101111$ is a $6$-bit number.

Unsigned value $=32+8+4+2+1=47$.

Signed value $=47-2^6=47-64=-17$.


Now compare the values:

A $=-53$, B $=-54$, C $=-59$, D $=-17$.

The smallest value is $-59$.


Final Answer: C.

0 0 votes

its very simple do calculation of 2's complement the eaiest method is - in 2's complement the first bit is -ve and rest are positive .

for option d = 101111 => -32 + 8 +4+ 2+1 = -17 is smallest here

Answer:
Position:
Show:

Related questions

10 10 votes
2 2 answers
285
285 views
GO Classes asked Jun 5
285 views
In a $10$-bit $2$’s complement system, how many bit patterns represent negative integers that are divisible by $8$, not divisible by $16$, and have even parity?
5 5 votes
2 2 answers
264
264 views
GO Classes asked Jun 5
264 views
Suppose we have two $16$-bit $2$’s complement numbers:$$101xx101101xxxxx$$$$1101101xx11xxxxx$$Here, each $x$ is an independent unknown bit and can be either $0$ or $1$.Co...
7 7 votes
1 1 answer
261
261 views
GO Classes asked Jun 5
261 views
Which of the following exact decimal expressions can be represented in binary notation with a finite number of bits?$0.84-0.33$ $0.64-0.015$ $0.72+0.02$ $0.45-0.125$
4 4 votes
1 1 answer
188
188 views
GO Classes asked Jun 5
188 views
A $12$-bit $2$’s complement number has hexadecimal representation $(B6D)_H$. This number is sign-extended to $16$ bits and then arithmetic right-shifted by $2$ positions....