edited by
9,885 views
27 votes
27 votes

The $2's$ complement representation of the decimal value $-15$ is

  1. $1111$
  2. $11111$
  3. $111111$
  4. $10001$
edited by

6 Answers

Best answer
35 votes
35 votes
D) is the correct ans.In 2's complement representation, positive numbers are represented in simple binary form and negative numbers are represented in its 2's complement form. So, for -15, we have to complement its binary value - 01111 and add a 1 to it, which gives 10001. Option D.
selected by
15 votes
15 votes

Convert the magnitude, -15 to binary.

1111

To make it 8 bits pad 4 extra bits to 1111 (Always Before)

00001111

Negate the number by inverting the bits and adding 1.In simple words 

Take the 2's complement of the no

11110001 (from LSB when u see ist 1 leave it as it is and thereafter flip the all bits.)

To match the answer  ignore most significant 3 bits ANS - 10001

2 votes
2 votes
steps:-

1.compliment of the bits  (0000)

2.add one to the result  (0001)

the answer is front of you  (10001)
1 votes
1 votes

For -15, we have to complement its binary value - 01111..

actually 5 bits required to represent -15 in 2's compement

because range of 2's complement no is -2n-1 to +2n-1-1 .. therefore it will be 10001

In 2's complement representation positive integers are represented in its normal binary form while negative numbers are represented in its 2's complement form.

Answer:

Related questions

34 votes
34 votes
4 answers
1
Kathleen asked Sep 15, 2014
6,535 views
Sign extension is a step in floating point multiplicationsigned $16$ bit integer additionarithmetic left shiftconverting a signed integer from one size to another
23 votes
23 votes
3 answers
2
Kathleen asked Sep 15, 2014
5,831 views
The decimal value $0.25$is equivalent to the binary value $0.1$is equivalent to the binary value $0.01$is equivalent to the binary value $0.00111$cannot be represented pr...
30 votes
30 votes
3 answers
3
Kathleen asked Sep 15, 2014
9,203 views
In $2's$ complement addition, overflowis flagged whenever there is carry from sign bit additioncannot occur when a positive value is added to a negative valueis flagged w...