• edited by
20,867 views
50 50 votes
The $16\text{-bit}\;2's$ complement representation of an integer is $1111 \quad 1111 \quad 1111 \quad 0101;$ its decimal representation is ____________

10 Answers

Best answer
61 61 votes
$1111 \; 1111\; 1111\; 0101$

$2's$ complement of $1111 \; 1111\; 1111\; 0101 = 0000 \; 0000\; 0000\; 1011 =+11$

$2's$ complement of $-11 = +11,$ in $2's$ complement representation

$2's$ complement of $+11 = -11,$ in $2's$ complement representation

So $-11$ it should be.
• edited by
39 39 votes

Answer $= -11$.

for $2's$ complement  1 111 1111 1111 0101  $→$$2′s$ complement$→$$2′s$ complement  $1$ $000$  $0000$  $0000$  $1011$

1bit$^{st}$ is same not involved in $2's$ complement same with $1's$ complement. since msb bit for sign.

Take one's complement and add $1$ we get $11$, and as it is negative number we get answer as $-11$.

Reference: http://www.electronics-tutorials.ws/binary/signed-binary-numbers.html.

• edited by
15 15 votes

   1111111111110101  -> ignore all 1's, except one 1 from left side(because they have no effect on final decimal value)

=  10101

=  (-24)*1 + (23)*0 + (22)*1 + (21)*0 + (20)*1  

= -16 + 4 + 1

= -11

2 2 votes
Procedure:

Consider the power place values ofthe number from right to left is 0,1,2,3,4,5........ so on

Calculate the place value of first 1 of the number from left where contineous 1s are there to the left of it till end(Let called the place i).

Then do this formula: -(2^i)+(sum of all 2^j)   Here j is from i-1  to 0

Here Number is:1111111111110101

  -(2^4) +2^2+2^0=-16+4+1=-11
2 2 votes

it can also b computed by booth's algorithm ....

1111 1111 1111 0101

pad with one zero

1111 1111 1111 01010

now booth's recoded code is

00000000000-11-11-1

now expand it 

(-1)*20 +1*21+(-1)*22+1*23+(-1)*24 

=-11

• edited by
1 1 vote

There is a difference between 2 complement and 2 complement representation

In 4 bit system -

2 complement of 7 is 1001

but 2 complement representation of 7 is 0111.

Here in this question we are talking about 2 complement representation .

Hence -11 is the answer.

refer : Potential ambiguities of terminology at

https://en.wikipedia.org/wiki/Two%27s_complement

 

Answer:
Position:
Show:

Related questions

152 152 votes
20 answers 20 answers
73.7k
73.7k views
Sandeep Singh asked Feb 12, 2016
73,727 views
We want to design a synchronous counter that counts the sequence $0-1-0-2-0-3$ and then repeats. The minimum number of $\text{J-K}$ flip-flops required to implement this ...
35 35 votes
8 answers 8 answers
14.4k
14.4k views
Sandeep Singh asked Feb 12, 2016
14,387 views
Consider the two cascade $2$ to $1$ multiplexers as shown in the figure . The minimal sum of products form of the output $X$ is $\overline{P} \ \overline {Q}+PQR$$\ove...
114 114 votes
9 answers 9 answers
48.8k
48.8k views
Sandeep Singh asked Feb 12, 2016
48,788 views
Consider a carry look ahead adder for adding two $n$-bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is$\Theta (1)$$\...
92 92 votes
10 answers 10 answers
39.5k
39.5k views
Sandeep Singh asked Feb 12, 2016
39,479 views
Consider the weighted undirected graph with $4$ vertices, where the weight of edge $\{i,j\}$ is given by the entry $W_{ij}$ in the matrix $W$. W=$\begin{bmatrix} 0&2 &8 &...