Question 3

OCR Computer Science June 2023 Computer systems (J277-01)GCSE17 marks

On the specification

(a)
1.2 Memory and storage
(b)(i)
1.2 Memory and storage
(b)(ii)
1.2 Memory and storage
(b)(iii)
1.2 Memory and storage
(b)(iv)
1.2 Memory and storage
(c)(i)
1.2 Memory and storage
(c)(ii)
1.2 Memory and storage
Question text

3 Binary numbers can represent different forms of data. (a) One form of data is characters. Complete the description of how computers represent characters in binary using the given list of terms. Not all terms will be used. 24 8 9 16 32 256 71 72 74 76 78 80 81 all different identical one repeated similar some unique A character set stores of the characters that the computer can represent. Each character is given a binary code. Lower-case and upper-case letters in a character set are given binary codes. One example of a character set is ASCII. This character set uses bits for each character. If the code value for the character ‘F’ is 70 then the code value for the character ‘L’ is . [5] (b) Binary numbers can also represent images. The table shows the colours that are used in an image and the binary value for each colour. Colour Binary value Red 0000 Green 0010 Blue 1000 Purple 0110 The metadata states that the image is 3 pixels wide by 4 pixels high. The data in the file starts in the top left of the image and goes from left-to-right, top-to- bottom. (i) State what is meant by metadata in an image file. [1] (ii) The binary data stored for the image is given: 000000000110100000101000011001100110000000101000 A grid is given for the image. Each square is one pixel. Write the name of the colour in each square that the pixel will show for this image. [2] (iii) A colour depth of 4 is used. This means 4 bits are used to store the colour for each pixel. State the maximum number of different colours that can be represented in 4-bits. [1] (iv) The colour depth is increased to 2 bytes. State two effects that this change can have on the image. 1 2 [2] (c) A student has a text document and an image file that need to be compressed separately. The student needs to reduce the file size of both of these files as much as possible. (i) Identify the most suitable type of compression for the text document. Justify your choice. Type of compression Justification [3] (ii) Identify the most suitable type of compression for the image file. Justify your choice. Type of compression Justification [3]