Which of the following is the 2's complement of the binary number (101100)2?
2018
Which of the following is the 2's complement of the binary number (101100)2?
- A.
(010011)2
- B.
(101111)2
- C.
(010100)2
- D.
(111100)2
Attempted by 145 students.
Show answer & explanation
Correct answer: C
To find the 2's complement of (101100)₂, first invert all bits to get the 1's complement: (010011).
Next, add binary 1 to this result: (010011) + 1 equals (010100). Thus, the 2's complement is (010100)₂.