Unit 1
Data Representation
[3.1] You are given the following binary sequence: 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101
- If you were to interpret this sequence as 8 bit numbers, what would the numbers be?
- If you were to interpret this sequence as text (8 bits per character) what would the text say?
- If you were to interpret this sequence as RGB colors, how many pixels would there be represented? What color would each pixel be?
[3.2] One bit can represent 0 or 1. With two bits you have four possible combinations, 00, 01, 10, 11. How many different combinations can you make with four bits? What about eight bits?
[3.3] The largest number that one bit can represent is 1. With two bits, the largest number we can represent is 3 (binary 11). What is the largest number that we can represent with four bits? What about eight bits?
[3.4] A 15-110 student just finished playing their favorite video game and got a high score of: fifteen thousand, one hundred and ten. How many digits would it take to represent this number in the decimal number system? What about in the binary number system?
[3.5] Convert each of the decimal numbers below to binary, and the binary numbers to decimal.
- 8
- 13
- 145
- 000111
- 10011
- 11000111
[3.6] Convert each of the characters/text below to binary, and the given binary sequences to characters/text.
- a
- f
- HI
- 01110111
- 01111010
- 01101110 01101111
[3.7] Convert each of the colors below to binary sequences and the given binary sequences to colors:
- Red is (255,0,0)
- Yellow is (255,255,0)
- Magenta is (180, 61, 194)
- 00000000 11111111 00000000
- 00011100 11001111 10101000