Question 1
1 markAn HTML colour code such as #3A7BD5 is made up of six hexadecimal digits.
State how many bits are used to store the amount of each colour (red, green or blue).
Model answer
8 bits (one byte) for each colour.
Explanation
Each colour uses two hexadecimal digits, and each digit represents 4 bits, so each colour uses 2 × 4 = 8 bits. The whole code is 24 bits.
Mark scheme
-
1 mark
8 / eight (bits)
accept 'one byte'