An icon is saved as a digital image file.
The lookup table below maps each color used in the icon to its unique binary representation:
| Color | Binary value |
|---|---|
| Crimson | 1100 |
| Teal | 0011 |
| Indigo | 1001 |
| Emerald | 0110 |
The metadata associated with the file indicates that the icon has a width of 3 pixels and a height of 4 pixels.
The binary data representing the pixel grid is stored sequentially as:
110001100011100110011100001101100110110010010011
The pixels are stored starting from the top-left, processing left-to-right, row-by-row.
Complete the table below to show the name of the color displayed by each pixel in the grid.
Practise OCR GCSE Computer Science Data storage with exam-style questions for GCSE Computer Science. 42 questions, matched to the OCR GCSE Computer Science (J277) specification and written in Component 01 and Component 02 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.