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
Last Updated :
28 Jun, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...