Year 10 Computing — Working out a file size
Work out how many bytes a picture, a piece of text or a recording takes up, from how many things are in it and how many bytes one of those things needs.
Name: ________________________
1.A recording stores 16000 samples every second, each sample taking 2 bytes, and it lasts 3 seconds. How many bytes does the recording take?
2.Put these files in order of size, smallest first.
- 500 samples a second for 5 seconds, 1 byte each
- 800 characters, 1 byte each
- 45 pixels by 40 pixels, 1 byte per pixel
- 20 pixels by 20 pixels, 3 bytes per pixel
3.A colour picture is 200 pixels wide and 150 pixels tall, and 3 bytes are stored for every pixel. How many bytes does it take?
4.A picture takes 7200 bytes altogether and stores 2 bytes for every pixel. How many pixels does the picture have?
5.Sort each of these files by whether it takes more than 10000 bytes.
Groups: More than 10000 bytes · Fewer than 10000 bytes
- 50 pixels by 40 pixels, 3 bytes per pixel
- 60 pixels by 80 pixels, 1 byte per pixel
- 120 pixels by 90 pixels, 1 byte per pixel
- 3000 characters, 1 byte each
- 70 pixels by 70 pixels, 3 bytes per pixel
- 2000 samples a second for 8 seconds, 1 byte each
6.One picture is 100 pixels by 80 pixels with 1 byte per pixel. Another is 50 pixels by 40 pixels with 3 bytes per pixel. Which is larger, and by how much?
- a) The two are exactly the same size
- b) The second, by 2000 bytes
- c) The first, by 4000 bytes
- d) The first, by 2000 bytes
7.A recording stores 8000 samples every second, and each sample takes 2 bytes. How many bytes does 5 seconds of it take?
8.Match each file to the number of bytes it takes.
- 24 pixels by 25 pixels, 1 byte per pixel
- 1500 characters, 1 byte each
- 30 pixels by 30 pixels, 2 bytes per pixel
- 400 samples a second for 6 seconds, 1 byte each
- 20 pixels by 15 pixels, 3 bytes per pixel
- 1500
- 900
- 1800
- 2400
- 600
Answer key — Year 10 Computing — Working out a file size
- 1. 96000
- 2. 1. 800 characters, 1 byte each 2. 20 pixels by 20 pixels, 3 bytes per pixel 3. 45 pixels by 40 pixels, 1 byte per pixel 4. 500 samples a second for 5 seconds, 1 byte each
- 3. 90000
- 4. 3600
- 5. 60 pixels by 80 pixels, 1 byte per pixel → Fewer than 10000 bytes; 120 pixels by 90 pixels, 1 byte per pixel → More than 10000 bytes; 3000 characters, 1 byte each → Fewer than 10000 bytes; 50 pixels by 40 pixels, 3 bytes per pixel → Fewer than 10000 bytes; 2000 samples a second for 8 seconds, 1 byte each → More than 10000 bytes; 70 pixels by 70 pixels, 3 bytes per pixel → More than 10000 bytes
- 6. d) The first, by 2000 bytes
- 7. 80000
- 8. 24 pixels by 25 pixels, 1 byte per pixel → 600; 1500 characters, 1 byte each → 1500; 30 pixels by 30 pixels, 2 bytes per pixel → 1800; 400 samples a second for 6 seconds, 1 byte each → 2400; 20 pixels by 15 pixels, 3 bytes per pixel → 900