What is the 2's complement of the binary number 0101?
Options
-
A.
1010
-
B.
1011
-
C.
1100
-
D.
1110
-
E.
None of the above
Correct Answer (Detailed Explanation is Below)
B.
1011
Detailed Explanation
Explanation: To find 2's complement, first calculate 1's complement and then add 1.
0101 → 1010 + 1 = 1011.