Question 1

AQA Computer Science Sample papers (first exams 2027) Paper 2 (8525/2)GCSE16 marks

On the specification

1.1
3.3 Fundamentals of data representation
1.2
3.3 Fundamentals of data representation
1.3
3.3 Fundamentals of data representation
1.4
3.3 Fundamentals of data representation
1.5
3.3 Fundamentals of data representation
1.6
3.3 Fundamentals of data representation
1.7
3.3 Fundamentals of data representation
1.8
3.3 Fundamentals of data representation
Question text

1 A bit pattern is shown in Figure 1. Figure 1 01001110 1.1 Convert the bit pattern shown in Figure 1 into decimal. [1 mark] 1.2 Convert the bit pattern shown in Figure 1 into hexadecimal. [2 marks] Answer: 1.3 A student’s answer to the question “Why is hexadecimal often used instead of box binary?” is shown in Figure 2. Figure 2 Because it uses fewer digits it will take up less space in a computer’s memory. Explain why the student’s answer is incorrect. [2 marks] 1.4 Explain how a binary number can be multiplied by 8 by shifting bits. [2 marks] ASCII (American Standard Code for Information Interchange) is a coding system that can be used to represent characters. In ASCII the character A is represented by the numeric code 65. 1.5 Shade one lozenge to indicate which character is represented by the numeric code 70. [1 mark] A E B F C f D 6 E e 1.6 Unicode is an alternative to the ASCII coding system. box Describe one advantage and one disadvantage of using Unicode to represent characters instead of using ASCII. [2 marks] When data is stored in a computer it is often compressed. One method that can be used to compress text data is Huffman coding. To produce a Huffman code each character in a piece of text is placed in a tree, with its position in the tree determined by how often the character was used in the piece of text. A Huffman tree for the text ZOE SAW A ZEBRA AT THE ZOO is shown in Figure 3. Figure 3 SPACE Z E O A S T R H B W Using this Huffman tree, the Huffman coding for the character E would be the bit box pattern 110 because from the top of the tree E is to the right, then right again and then left. The character Z is represented by the bit pattern 010 because from the top of the tree Z is to the left, then right and then left. 1.7 Using the Huffman code in Figure 3, complete the table to show the Huffman coding for the characters O, SPACE and B. [3 marks] Character Huffman coding O SPACE B 1.8 Using Huffman coding, the text ZOE SAW A ZEBRA AT THE ZOO can be stored in 83 bits. Calculate how many additional bits are needed to store the same piece of text using ASCII. Show your working. [3 marks]