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.