Worked solution from the Information representation Paper 1 Theory Fundamentals booklet, Part 1 of 3.
Write what each term means.
A pixel is a single square of one colour. It is the smallest addressable element in an image. [1]
A file header stores data about the bitmap image, for example the number of colours. [1]
File size = width × height × colour depth.
1024 × 512 = 524 288 pixels, and 8 bits = 1 byte per pixel, so the size is 524 288 bytes. [1]
Divide by 1024 to get kibibytes, then by 1024 again to get mebibytes: 524 288 ÷ 1024 ÷ 1024 [1]
Answer: 0.5 mebibytes [1]
Name the method, then say how it makes the file smaller.
Method: run-length encoding (RLE) [1]
It replaces a run of pixels of the same colour ... [1]
... with the colour code and the number of identical pixels in the run. [1]
F = 15, so FC = 15 × 16 + 12.
= 252 [1]
Write 15 as 8 bits: 00001111. [1]
Add in binary, column by column, carrying 1 when needed:
| 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | |
|---|---|---|---|---|---|---|---|---|
| + | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 |
| = | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 |
Method for the addition shown (with carries) [1]
Answer: 00110010 [1]
Subtracting 10 means adding −10 in two's complement.
10 = 00001010. Invert: 11110101. Add 1: 11110110 (this is −10). [1]
Add: 00100011 + 11110110 = 1 00011001. Ignore the extra carry bit on the left. [1]
Answer: 00011001 [1]
Write any two of these points:
Copyright is the formal and legal right to ownership of a piece of work (intellectual property rights). [1]
It protects the work against unauthorised copying (reproduction). [1]
It gives the owner a legal right of redress if the work is used without permission.
▶ Whole paper
Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.