To convert the decimal number 20 to binary, we can divide the number by 2 and record the remainders. Here’s how the conversion works:
- 20 divided by 2 is 10, remainder 0
- 10 divided by 2 is 5, remainder 0
- 5 divided by 2 is 2, remainder 1
- 2 divided by 2 is 1, remainder 0
- 1 divided by 2 is 0, remainder 1
Now we read the remainders from bottom to top: 10100.
Therefore, the binary representation of the decimal number 20 is 10100.
The correct answer is: D. 10100