Chapter 1
Revision Worksheet
1.A programmer is creating a computer game. One character is not moving correctly.
The programmer needs to debug the program. To do this they need to look at addresses that are
locations in memory.
The addresses are displayed as hexadecimal numbers.
(a) One address is A2F.
(i) Convert the address to binary.
A = 10 = 1010
2 = 0010
F = 15 = 1111
Answer: A2F = 1010 0010 1111.
..................................................................................................................................... [3]
(ii) Convert the address to denary.
(10 * 16^2) + (2 * 16^1) + (15 * 16^0)
A2F = 2607
..................................................................................................................................... [1]
Working space
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
(b) The binary number stored for another address is 000110011011.
(i) Convert the binary number to hexadecimal.
Split into 4-bit groups: 0001 1001 1011.
Answer =19B
..................................................................................................................................... [3]
(ii) Convert the binary number to denary.
(1 * 2^8) + (1 * 2^7) + (1 * 2^4) + (1 * 2^3) + (1 * 2^1) + (1 * 2^0).
Answer= 411
..................................................................................................................................... [1]
Working space
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
(c) Give one reason why the addresses are displayed in hexadecimal instead of binary.
hexadecimal is more compact and easier to read than longer binary
...................................................................................................................................................
............................................................................................................................................. [1]
(d) Identify one other way that hexadecimal is used in computer science.
1. Used in color codes for web design (e.g. #FFFFF for white).
1................................................................................................................................................ [1]
An Audio CD has a sample rate of 44100 and a sample resolution of 10 bits. The music being .2
sampled uses two channels to allow for stereo recording. Calculate the file size for a 60-minute
.recording in MiB
Sample rate = 44,100 samples per second
Sample resolution = 10 bits
Stereo (2 channels)
:Working
samples 158760000= 60× 60× 44,100
:Bits
samples×10 bits/sample×2 =3,175,200,000 bitss 158,760,000
:bits to bytes
bytes 396,900,000=8÷3,175,200,000
:bytes to MiB
MiB 378.63=)1024×1024(÷396,900,000
Answer: 378.63 MiB.
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
..……………………………………………………………
[5]