Question 4
AQA Computer Science November 2021 Paper 1 (8520/1)GCSE10 marks
On the specification
- 4.1
- 3.3 Fundamentals of data representation
- 4.2
- 3.3 Fundamentals of data representation
- 4.3
- 3.3 Fundamentals of data representation
- 4.4
- 3.1 Fundamentals of algorithms3.2 Programming
- 4.5
- 3.1 Fundamentals of algorithms3.3 Fundamentals of data representation
Question text
4.1 A student has written the following statements about representing images. Two are correct and two are incorrect: Statement 1 “Bitmap images are made up of pixels.” Statement 2 “A 2 pixel by 4 pixel bitmap image contains 16 pixels.” Statement 3 “A pixel is a single point in a graphical image.” Statement 4 “Black and white images have a minimum colour depth of two.” Write the correct versions of the two incorrect statements that the student has made. [2 marks] First corrected statement Second corrected statement 4.2 Calculate the minimum file size in bits of a 10 pixel by 10 pixel image with a colour box depth of 3 bits. [1 mark] 4.3 Calculate the minimum file size in bytes of a 10 pixel by 10 pixel image with 12 different colours. You should show your working. [3 marks] 4 4 box . This is one row of a bitmap image that uses different shades of grey: This row is stored using the following numbers to represent the different shades of grey: 56 34 0 99 72 23 The algorithm shown in Figure 4 uses this row. Figure 4 row ← [56, 34, 0, 99, 72, 23] newRow ← [0, 0, 0, 0, 0, 0] FOR i ← 0 TO 5 IF row[i] > 50 THEN newRow[i] ← 99 ENDIF ENDFOR Complete the trace table for the algorithm shown in Figure 4. The first values have already been entered. You may not need to use all rows of the trace table. [3 marks] newRow i 1 2 3 4 5 0 0 0 0 0 0 4.5 State the purpose of the algorithm shown in Figure 4. [1 mark]