Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1ratio = original / compressed | A10 / 2 = 5 | |
| 2saved = (original - compressed) / original * 100 | BThe sizes are the wrong way around. The ratio should be original divided by compressed, so 10 MB down to 2 MB gives 5, not 0.2. | |
| 3A 10 MB file compressed to 2 MB has a compression ratio of 5 to 1 | CWorks out the percentage of space saved by compression | |
| 4Technique A shrinks 50 MB to 10 MB and technique B shrinks 50 MB to 25 MB, so A saves more space | DThe percentage saved is divided by the compressed size (2). It must be divided by the original size (10), giving 80%, not 400%. | |
| 5ratio = compressed / original | EWorks out the compression ratio by dividing the original size by the compressed size | |
| 6saved = (10 - 2) / 2 * 100 | F(50 - 10) / 50 * 100 = 80 and (50 - 25) / 50 * 100 = 50 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
compression ratio = original size / compressed size — Original size divided by compressed size. Percentage saved = (original - compressed) / original x 100. Example: 10 MB down to 2 MB is a ratio of 5 to 1, saving 80%.ratio ← original / compressedsaved ← (original - compressed) / original
percent ← saved * 100original ← 10
compressed ← 2
saved ← (original - compressed) / originalsaved ← 8 / 10
percent ← saved * 100ratioA ← 12 / 4
ratioB ← 12 / 3
IF ratioA < ratioB THEN OUTPUT "B"