Practice: coding and working out sizes
Answers are for parents and teachers.
1
Write five 4-bit codes (for example 0101) and work out how many exist in all.
16
2
How many MB is 2 GB?
2048
3
Write a sentence you like and find its size in bytes and bits (count spaces too).
Characters = bytes; bits = bytes × 8.
4
A booklet has 6 pages with 200 characters on each. How many bytes is it?
1200
5
A robot code: 00 – up, 01 – right, 10 – down, 11 – left. Which directions does the code “01 11 10” send the robot?
Right, left, down.