Complete the code to represent the decimal number 5 in 8-bit binary.
binary_5 = "00000[1]01"
The decimal number 5 in 8-bit binary is 00000101. The blank represents the bit for 4 which is 1.
Complete the code to show the 8-bit binary representation of the decimal number 10.
binary_10 = "[1]1010"
The 8-bit binary for decimal 10 is 00001010. The blank is for the leading four bits which are 0000 to make it 8 bits.
Fix the error in the 8-bit binary representation of decimal 13.
binary_13 = "0000[1]101"
The decimal 13 in binary is 00001101. The blank must be 1 to correctly represent 13.
Fill both blanks to complete the 8-bit binary representation of decimal 18.
binary_18 = "000[1][2]010"
Decimal 18 in binary is 00010010. The blanks represent the 4th and 5th bits which are 1 and 0 respectively.
Fill all three blanks to complete the 8-bit binary representation of decimal 29.
binary_29 = "000[1][2][3]01"
Decimal 29 in binary is 00011101. The blanks represent the 4th, 5th, and 6th bits which are 1, 1, and 1 respectively.
