Data Representation: Unit Exam B
Instructions
- Time allowed
- 25 minutes
- Total marks
- 25
- Calculator
- No calculator is permitted.
- Answer all the questions.
Questions
- L102
- L153
- L127
0110 0110 = 64 + 32 + 4 + 2 = 102. 1001 1001 = 128 + 16 + 8 + 1 = 153. 0111 1111 = 127.
- L00010010
- L11111111
18 = 16 + 2 = 0001 0010. 255 is every bit set: 1111 1111.
- L01111110
- L11000100
7 is 0111 and E is 1110: 0111 1110. C is 1100 and 4 is 0100: 1100 0100.
- L1F
- LA0
31 = 1 x 16 + 15, so 1F. 160 = 10 x 16 + 0, so A0.
- L10001110
57 + 85 = 142, which is 1000 1110.
| True | False | |
|---|---|---|
| The largest number that 8 bits can hold is 255 | ||
| Hexadecimal uses the digits 0 to 9 and the letters A to F | ||
| Adding two 8-bit numbers can never cause overflow | ||
| A nibble is half a byte |
Tick one box in each row.
- LThe largest number that 8 bits can hold is 255: True
- LHexadecimal uses the digits 0 to 9 and the letters A to F: True
- LAdding two 8-bit numbers can never cause overflow: False
- LA nibble is half a byte: True
255 is 1111 1111. Hex has sixteen digits. Two 8-bit numbers can add up to more than 255. A nibble is 4 bits.
- L8
2 x 2 x 2 = 8.
- L4 bits
2 to the power 4 is 16, so 4 bits.
- LCorrect answer, full marks: 10000 bytes
- LMethod: Multiplies the time by the sample rate
- LMethod: Multiplies by the bit depth, then divides by 8 to turn bits into bytes
10 x 1000 = 10,000 samples. 10,000 x 8 bits = 80,000 bits. 80,000 / 8 = 10,000 bytes.
Tick one box.
- LC Increasing the bit depth
A greater bit depth records each sample more precisely.
- LASCII uses 7 or 8 bits per character, so it has only 128 or 256 characters, mainly English
- LUnicode uses more bits, so it can represent far more characters, including every language and emoji
ASCII uses 7 bits per character, giving 128 characters: enough for English letters, digits and punctuation but little else. Unicode uses more bits per character, so it can represent over a million characters, covering every writing system and emoji.
Tick one box.
- LD The number of pixels, given as width by height
Resolution is the image's size in pixels, such as 1920 x 1080.
- L24
3 x 8 = 24.
- L100
d is three letters after a: 97 + 3 = 100.