CS: Binary Numbers and Number Systems
Reading, converting, and comparing base 2 numbers
CS: Binary Numbers and Number Systems
Reading, converting, and comparing base 2 numbers
CS - Grade 6-8
- 1
Write the place values for an 8-bit binary number from left to right.
Each place value is double the value to its right.
The place values are 128, 64, 32, 16, 8, 4, 2, and 1 from left to right. - 2
Convert the binary number 1010 to decimal.
The binary number 1010 equals 10 in decimal because 8 + 2 = 10. - 3
Convert the binary number 1101 to decimal.
Add the place values that have a 1 above them.
The binary number 1101 equals 13 in decimal because 8 + 4 + 1 = 13. - 4
Convert the decimal number 6 to a 4-bit binary number.
The decimal number 6 is 0110 in 4-bit binary because 4 + 2 = 6. - 5
Convert the decimal number 15 to a 4-bit binary number.
A 4-bit number uses the place values 8, 4, 2, and 1.
The decimal number 15 is 1111 in 4-bit binary because 8 + 4 + 2 + 1 = 15. - 6
Circle the larger value: 1001 or 0111. Explain your answer.
1001 is larger because it equals 9 in decimal, while 0111 equals 7 in decimal. - 7
Convert the binary number 10000000 to decimal.
Use the 8-bit place values 128, 64, 32, 16, 8, 4, 2, and 1.
The binary number 10000000 equals 128 in decimal because only the 128 place has a 1. - 8
Convert the decimal number 25 to an 8-bit binary number.
The decimal number 25 is 00011001 in 8-bit binary because 16 + 8 + 1 = 25. - 9
Add the binary numbers 0011 and 0101. Give the answer in binary and decimal.
You may convert both numbers to decimal first, add them, and then convert back to binary.
0011 + 0101 = 1000 in binary. The decimal value is 8 because 3 + 5 = 8. - 10
A computer stores a black-and-white pixel using 1 bit. If 0 means white and 1 means black, write the colors for the bit pattern 10110.
The bit pattern 10110 represents black, white, black, black, white. - 11
Explain why the binary number 100 is not the same value as the decimal number 100.
The meaning of each digit depends on the number system being used.
The binary number 100 uses base 2 place values, so it equals 4 in decimal. The decimal number 100 uses base 10 place values, so it equals one hundred. - 12
Convert the decimal number 42 to an 8-bit binary number.
Choose the largest place value that fits, then keep subtracting until you reach 0.
The decimal number 42 is 00101010 in 8-bit binary because 32 + 8 + 2 = 42.