GATE | GATE-CS-2002 | Question 15

The 2′ s complement representation of the decimal value – 15 is
(A) 1111
(B) 11111
(C) 111111
(D) 10001


Answer: (D)

Explanation: We have -1510 = 1 11112

1’s complement of  -15 = 1 0000 (Here, 1 represents negative sign)

2’s complement of -15 = 1 0001



 

Hence, D is the correct choice.

 

Please comment below if you find anything wrong in the above post.

Quiz of this Question



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.