202k views
5 votes
2's complement of binary number 0101 is ________?

a) 1011
b) 1111
c) 1101
d) 1110

2 Answers

3 votes

Final answer:

The 2's complement of the binary number 0101 is the option a) 1011, which is obtained by inverting the number to 1010 and then adding 1 to get 1011.

Step-by-step explanation:

The question at hand deals with finding the 2's complement of a binary number. The 2's complement of a binary number is found by inverting the digits and adding 1 to the least significant bit (LSB). To illustrate, the 2's complement of 0101 is calculated in two steps:

  1. Invert the digits: The inverse of 0101 is 1010.
  2. Add 1 to the LSB: 1010 + 1 = 1011.

Therefore, the 2's complement of the binary number 0101 is 1011.

User Graywolf
by
7.4k points
4 votes

Final answer:

The 2's complement of the binary number 0101 is 1011.

Step-by-step explanation:

The 2's complement of a binary number can be found by taking the 1's complement of the number and then adding 1 to the least significant bit (rightmost bit). In the given question, the binary number is 0101.

To find the 1's complement, we simply change all the 0s to 1s and vice versa. So, the 1's complement of 0101 is 1010.

Adding 1 to the least significant bit, we get 1011. Therefore, the 2's complement of the binary number 0101 is 1011.

User Manuel Di Iorio
by
7.7k points