User interface language: English | Español

Date November 2019 Marks available 1 Reference code 19N.1.SL.TZ0.4
Level SL Paper 1 Time zone no time zone
Command term State Question number 4 Adapted from N/A

Question

Colours are represented by a computer as a combination of the three primary colours: red, green and blue.

Numerical values are used to represent the different shades of each primary colour. These values range from 0 to 255 in decimal, or 00 to FF in hexadecimal.

State why hexadecimal numbers are frequently used in computing.

[1]
a.

State the number of bits used to represent a non-primary colour, such as yellow.

[1]
b.

State the maximum number of colours that can be represented in a computer pixel.

[1]
c.

Markscheme

Award [1 max].
Hexadecimal numbers are used for shorter representation of data because a (modern) byte can be represented exactly by two hexadecimal digits;
Hexadecimal numbers are used for shorter representation of data, because computers store and handle binary digits, and four binary digits make one hexadecimal digit;

a.

Award [1 max].
24;

b.

Award [1 max].
256 × 256 × 256 / (28)3 / 224;
2563;
16 777 216;

c.

Examiners report

This question required candidates to recognise that hexadecimal numbers are used for shorter representation of equivalent binary numbers, and the relationship between groups of binary digits and individual hexadecimal digits. Answers seen, were often too vague, simply stating that, for example, the numbers are easier to use.

a.

This question required candidates to realise that non-primary colours are stored as a combination of the three primary colours red, green and blue. 8 bits are required for each of these, making 24 bits necessary to store each non-primary colour. Many answers seen incorrectly gave 8 bits as the requirement.

b.

As with part b, candidates were expected to recognise that each computer pixel would be made up from a combination of each of the three primary colours, with one byte, 8 bits, or 28 = 256 combinations for each primary colour. The answer would therefore be 256 × 256 × 256, or 16 777 216 combinations. Many answers seen incorrectly gave 256 combinations.

c.

Syllabus sections

Topic 2: Computer organization » 2.1 Computer organization
Show 52 related questions
Topic 2: Computer organization

View options