Question 2
AQA Computer Science June 2018 Paper 2A level9 marks
On the specification
- 2.1
- 4.5 Fundamentals of data representation
- 2.2
- 3.5 Fundamentals of data representation
- 2.3
- 3.5 Fundamentals of data representation
- 2.4
- 3.5 Fundamentals of data representation
Question text
2 Figure 1 shows an image composed of four objects, represented digitally as a vector box graphic. Figure 2 shows the same image, represented digitally as a bitmap graphic. The bitmap graphic has an image size of 50 x 50 pixels. Each image uses four colours: white, black, yellow and blue. Figure 1 Figure 2 2.1 Describe how a vector graphic is represented. Include an explanation of how the black rectangle in Figure 1 would be represented in your description. [3 marks] 2.2 Calculate the minimum amount of storage space that is required to store the bitmap box image in Figure 2 excluding metadata. Express your answer in bytes. You must show your working. [2 marks] Figure 3 shows an enlarged view of part of one row of pixels from the image in Figure 2. Figure 3 2.3 Describe how a row of pixels, such as that shown in Figure 3, could be represented in compressed form by using run length encoding. [2 marks] Figure 4 shows an image of a woodland scene. box Figure 4 2.4 The image in Figure 2 is compressed using run length encoding. The compressed file is 80% smaller than the original file. The image in Figure 4 is compressed using the same technique and the compressed file is approximately the same size as the original file. Explain why the run length encoding method was not able to compress the image in Figure 4 as much as it could compress the image in Figure 2. [2 marks]