Question 5
AQA Computer Science Specimen Paper 2 (7517/2)A level8 marks
On the specification
- 5.1
- 3.5 Fundamentals of data representation
- 5.2
- 3.5 Fundamentals of data representation
- 5.3
- 3.5 Fundamentals of data representation
- 5.4
- 3.5 Fundamentals of data representation
- 5.5
- 3.5 Fundamentals of data representation
Question text
5 The icon in Figure 2 is represented in a computer's memory as a bitmap image. Figure 2 Row 1 2 3 4 5 6 7 8 9 10 Four different colours have been used in the icon. Row 1 of the icon is represented in the computer's memory as the bit pattern: 11 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 5.1 What are the bit patterns that have been used to represent a grey pixel and a white pixel? [1 mark] Grey pixel: White pixel: 5.2 State one possible 20-bit representation for Row 4 of the icon in Figure 2. [1 mark] 5.3 Calculate the number of bytes required to represent all the pixel data in the icon as a bitmap. Show your working. [2 marks] Answer: 5.4 When the bitmap is saved as a file, the file size is bigger than the answer to 5.3 . This is because metadata is saved in the file with the pixel data State one item of metadata that would be stored in a bitmap file. [1 mark] Run-length encoding (RLE) is an example of a compression method that could be used to reduce the amount of memory required to store the icon in Figure 2. 5.5 Describe the principle used by RLE to compress a file and explain why RLE is an appropriate compression method for compressing images such as icons. [3 marks]