Edexcel GCSE CS · 2.3
Data Storage and Compression
Name
Class
Date
Mark / 22
Section A
Circle the letter of the correct answer. One mark each.
- 1How many bytes are in one mebibyte?1
- A1024
- B8192
- C1000000
- D1048576
- 2Which storage type has no moving parts?1
- AOptical
- BSolid state
- CMagnetic
- DAll three have moving parts
- 3Why is magnetic storage often chosen for large backups?1
- AIt offers the lowest cost per gigabyte at large capacities
- BIt has no moving parts
- CIt is the fastest available
- DIt cannot be overwritten
- 4What is the defining feature of lossless compression?1
- AIt removes unnecessary colours
- BThe original file can be reconstructed exactly
- CIt only works on images
- DThe file always becomes half the size
- 5How would B B B W W B be written using run length encoding?1
- A6 values unchanged
- B3B 2W 1B
- C3B 2W
- DB3 W2 B
- 6Why would run length encoding be a poor choice for a photograph?1
- ARLE only works on text
- BPhotographs have no metadata
- CPhotographs are already lossless
- DPhotographs contain very few runs of identical pixels, so the file could grow
- 7Which is the correct term for storage whose contents are lost when power is removed?1
- ANon volatile
- BOptical
- CVolatile
- DSecondary
- 8Which compression method would be appropriate for a spreadsheet of financial figures?1
- ALossless, because losing any value would make the figures wrong
- BEither, since the effect is the same
- CNeither, spreadsheets cannot be compressed
- DLossy, because spreadsheets contain redundant cells
- 9A file is 4 GiB. How many mebibytes is that?1
- A1024
- B4000
- C4096
- D4194304
- 10Why does a solid state drive have a limited lifetime?1
- AThe magnetic coating degrades
- BThe platters wear out from spinning
- CThe laser dims with use
- DEach memory cell can only be rewritten a finite number of times
Section B
Answer in the space provided. The number of marks tells you how many separate points to make.
- 1StateState one advantage of solid state storage over magnetic storage.1
- 2RecommendA film company needs to store 40 TiB of raw footage that will be archived and rarely accessed. Recommend a type of secondary storage and justify your choice.4
- 3ExplainExplain the difference between lossy and lossless compression.4
- 4ShowA row of pixels contains B B B B B W W B B B. Show how it would be stored using run length encoding, and state how many values are saved.3
Mark scheme
Section A
Section B
1 State one advantage of solid state storage over magnetic storage. 1
One mark for each of the following, to a maximum of 1.
- Faster access, or no moving parts so more durable, or lower power use
Model answer. Solid state storage has no moving parts, so it is far more durable when the device is carried around, and data is accessed considerably faster because there is no read head that must physically move to the right place.
2 A film company needs to store 40 TiB of raw footage that will be archived and rarely accessed. Recommend a type of secondary storage and justify your choice. 4
One mark for each of the following, to a maximum of 4.
- Recommends magnetic storage
- Justifies it on the very large capacity required
- Justifies it on cost per gigabyte or terabyte
- Notes that the slower access speed does not matter for an archive
Model answer. The company should use magnetic hard disk storage. The volume involved is very large, and magnetic drives offer by far the lowest cost per terabyte at that scale, so the whole archive can be held for a fraction of what solid state would cost. The main drawback of magnetic storage is that access is slower, because the read head has to move physically to the data, but that is close to irrelevant here since the footage is being archived and will rarely be read. Optical storage is unsuitable because a single disc holds only a few gigabytes, so 40 tebibytes would need thousands of them.
3 Explain the difference between lossy and lossless compression. 4
One mark for each of the following, to a maximum of 4.
- Lossy compression permanently removes data
- So the original file cannot be recovered exactly
- Lossless compression stores the same data more efficiently
- So the original file can be reconstructed exactly
Model answer. Lossy compression achieves a large reduction in size by permanently discarding data that is judged to be less important, such as colour detail in an image that the eye barely registers or frequencies in audio that most people cannot hear. Because that data is gone, the original file can never be reconstructed exactly. Lossless compression instead finds a more efficient way of storing exactly the same information, for example by replacing runs of repeated values with a value and a count. Nothing is discarded, so decompressing gives back a file identical to the original, but the reduction achieved is more modest than lossy compression can manage.
4 A row of pixels contains B B B B B W W B B B. Show how it would be stored using run length encoding, and state how many values are saved. 3
One mark for each of the following, to a maximum of 3.
- Identifies the runs as five B, two W, three B
- Writes them as value and count pairs
- States that six values replace ten, saving four
Model answer. The row contains five B, then two W, then three B, so under run length encoding it is stored as the pairs 5B, 2W, 3B. That is three pairs, which is six values in total, in place of the ten values in the original row, so four values are saved. Nothing has been lost, since the original row can be written out again exactly from the pairs.