Units of Information (AQA GCSE Computer Science)

Exam Questions

1 hour32 questions
1a1 mark

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.

Identify one choice to indicate which character is represented by the numeric code 70.

  • E

  • F

  • f

  • 6

  • e

1b2 marks

Unicode is an alternative to the ASCII coding system.

State two advantages of using Unicode to represent characters instead of using ASCII.

Did this page help you?

22 marks

Bob purchases a 4GB SD card for use as secondary storage in his phone.

Calculate how many megabytes there are in 4GB.

Show your working.

Did this page help you?

3a1 mark

The sound engineer currently uses a sample resolution of 4 bits which enables a sample to be stored as one of 16 different bit patterns. She wants to increase the number of bit patterns available from 16 to 32.

Identify one choice which shows the minimum sample resolution (in bits) she can choose that will allow her to do this.

  • 3 bits

  • 5 bits

  • 8 bits

  • 16 bits

3b1 mark

Identify one choice to show which of the following correctly states the effects of increasing the sampling rate.

  • Decreases both the quality of the recording and the file size

  • Has no effect on the quality of the recording or the file size

  • Improves the quality of the recording and has no effect on the file size

  • Improves the quality of the recording and increases the file size

Did this page help you?

42 marks

Add together the following three binary numbers and give your answer in binary.

space space space space space 0 space 1 space 0 space 1 space 1 space 0 space 0 space 0 space
space space space space space 0 space 0 space 0 space 1 space 1 space 0 space 0 space 1 space
plus space 0 space 1 space 0 space 0 space 1 space 0 space 1 space 1
top enclose space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space end enclose
top enclose space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space end enclose

Did this page help you?

51 mark

Describe the binary shift that would be used to divide a binary number by four.

Did this page help you?

61 mark

When a sound wave is converted to a digital form it is sampled. The sampling rate is measured in hertz (Hz).

Define the term hertz.

Did this page help you?

71 mark

The term pixel is short for Picture Element.

Define the term pixel.

Did this page help you?

8a1 mark

Apply a binary shift three places to the right on the bit pattern 10101000

Give the result using 8 bits.

8b1 mark

The arithmetic effect of applying a left binary shift of two to a binary number is to multiply that number by four.

State the arithmetic effect of applying a left binary shift of four to a binary number.

8c1 mark

State the arithmetic effect of applying a left binary shift of three followed by a right binary shift of five to a binary number.

Did this page help you?

92 marks

The ASCII value for the character x is the decimal number 120

Complete Table 1 with the missing ASCII and Unicode values.

Table 1

Character

ASCII value

Unicode value

w

x

120

y

z

Did this page help you?

10a1 mark

Analogue sound must be converted to a digital form for storage and processing in a box computer.

Define the term sample resolution.

10b1 mark

State one disadvantage of a high sample resolution.

Did this page help you?

112 marks

State two reasons why data are compressed.

Did this page help you?

121 mark

Identify one choice that states why Unicode is now commonly used in preference to ASCII.

  • Unicode can be represented in hexadecimal.

  • Unicode includes characters from many different alphabets

  • Unicode is a sequential character set

  • Unicode is easier to remember than ASCII.

  • Unicode takes up less space in memory than ASCII.

Did this page help you?

131 mark

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 2A 2 pixel by 4 pixel bitmap image contains 16 pixels.

Statement 3A pixel is a single point in a graphical image.

Statement 4Black and white images have a minimum colour depth of two.

Write the correct versions of the two incorrect statements that the student has made.

Did this page help you?

141 mark

Figure 4 shows a black and white image.

Figure 4

Grid of 16 squares, top row: 9 black, 3 white; bottom row: 4 white. Black squares form a partial rectangle above a white row.

The image shown in Figure 4 could be compressed using Run Length Encoding (RLE).

The RLE for the image in Figure 4 is B15 W9

Figure 5 shows another black and white image.

Figure 5

A grid of squares, predominantly black, with two prominent rows of white squares in the middle, creating a staggered pattern across the grid.

Give the RLE for the image shown in Figure 5.

Did this page help you?

1a2 marks

Explain how a binary number can be multiplied by 8 by shifting bits.

1b3 marks

Using the Huffman code in Figure 3, complete the table to show the Huffman coding for the characters O, SPACE and B.

Character

Huffman coding

O

SPACE

B

Figure 3

A Huffman tree diagram with letters A, E, O, R, H, B, W, S, T, Z, and SPACE as nodes, showing binary data compression structure.
1c3 marks

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.

Did this page help you?

2a2 marks

A sound engineer is recording a singer.

Describe why the sound must be converted to a digital format before it can be stored on a computer system.

2b4 marks

The sound engineer is using a sampling rate of 2000 Hz and a sample resolution of 4 bits.

What is the minimum file size of a 5-second recording? Your answer should be given in bytes.

You should show your working.

Did this page help you?

32 marks

Convert 16,000,000 bits to megabytes (MB).

You should show your working.

Did this page help you?

43 marks

A sampling rate of 20,000 Hz and a sample resolution of four bits is used to make a digital recording of a sound that lasts 50 seconds.

What is the minimum file size of the recording in megabytes (MB)?

You should show your working.

Did this page help you?

5a3 marks

Figure 1 shows a 5 pixel x 5 pixel image. A minimum colour depth of two bits is needed to store the image.

Figure 1

5x5 grid with white, grey, and black squares. Top row has three white, two black. Black squares increase diagonally downwards, grey in centre.

Explain how the image in Figure 1 can be represented as a bitmap.

5b2 marks

A 10 pixel x 10 pixel image contains five different colours.

Calculate the minimum file size, in bits, of this image when represented as a bitmap.

You should show your working.

5c2 marks

A black and white image has been compressed using run length encoding (RLE).

The first bit in each byte of the bit pattern represents the colour and the remaining seven bits of the byte represent the number of pixels in the run.

The image has a run of 60 black pixels followed by a run of 30 white pixels and is represented by the bit pattern shown in Figure 2.

Figure 2

0

0

1

1

1

1

0

0

1

0

0

1

1

1

1

0

Using the same RLE method, give the bit pattern for a black and white image that has a run of 64 white pixels followed by a run of 15 black pixels.

Did this page help you?

62 marks

Add together the following three binary numbers and give your answer in binary.

space space space space 0 space 0 space 1 space 1 space 0 space 1 space 1 space 0
space space space space 1 space 0 space 0 space 1 space 0 space 0 space 1 space 0
plus 0 space 0 space 1 space 0 space 0 space 0 space 0 space 1
top enclose space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space end enclose
top enclose space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space end enclose

Did this page help you?

72 marks

How many bits are there in two kilobytes?

Show your working.

Did this page help you?

83 marks

Figure 1 shows a 10 x 8 bitmap image that uses three colours.

Grid artwork of a simplified mushroom shape, featuring alternating black and grey squares on a white background, with a black base and grey cap.

Calculate the minimum file size that would be required to store the bitmap image in Figure 1.

Give your answer in bytes.

Show your working.

Did this page help you?

92 marks

Analogue sound must be converted to a digital form for storage and processing in a computer.

A 50-second sound has been recorded at a sample rate of 40000 Hz.

Two bytes have been used to store each sample of the sound.

Calculate the file size of the sound file in megabytes.

Show your working.

Did this page help you?

101 mark

Another method for compressing data is Huffman coding. In Huffman coding, the codes for the characters can be created based on their position in a tree.

Figure 3 shows a Huffman code for each different character in the string in Figure 2.

Figure 3

Character

Binary code

M

100

I

0

S

11

P

101

Complete the Huffman tree below to show the position of the characters I, S and P using the codes from Figure 3.

Diagram of a binary tree with root node 11, followed by nodes 7 and 3. Three leaves are empty squares, one marked with "M".

Did this page help you?

11a1 mark

Calculate the minimum file size in bits of a 10 pixel by 10 pixel image with a colour depth of 3 bits.

11b3 marks

Calculate the minimum file size in bytes of a 10 pixel by 10 pixel image with 12 different colours.

You should show your working.

Did this page help you?

121 mark

Figure 1 shows a value represented as a bit pattern.

Figure 1

1 0 1 1 0 0 0 0

A binary shift can be used to divide the value in Figure 1 by 4

State the result of this shift?

Your answer must be in binary.

Did this page help you?

132 marks

Add the following binary numbers and give your answer in binary

space space space space 1 space 0 space 1 space 1 space 0 space 1 space 0 space 0
space space space space 0 space 0 space 1 space 0 space 0 space 0 space 1 space 0
plus 0 space 0 space 0 space 1 space 0 space 1 space 0 space 1
top enclose space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space end enclose
top enclose space space space space space space space space space space space space space space space space space space space space space space space space space space space space space space end enclose

Did this page help you?

14a4 marks

Eight minutes of sound has been digitally recorded. The sampling rate used was 25 000 Hertz and the sample resolution used was 4 bits.

Calculate the minimum file size for the recording.

Give your answer in megabytes.

You should show your working.

14b2 marks

Explain what effects increasing the sampling rate would have on the recording.

Did this page help you?

152 marks

Run Length Encoding (RLE) is represented using binary, with one bit representing the colour (W = 1, B = 0) followed by seven bits representing the frequency.

Give the binary representation of the RLE: B15 W9

Did this page help you?

163 marks

Table 1 is a frequency table that contains the frequency of characters in a string.

Table 1

A

6

B

2

C

3

Use the frequencies given in Table 1 to draw a Huffman tree that represents the string.

Did this page help you?

12 marks

Figure 2 shows a string.

Figure 2

MISSISSIPPI

One method for compressing data is run length encoding (RLE).

When using RLE, the data in Figure 2 become:

1M 1I 2S 1I 2S 1I 2P 1I

Explain why RLE is not a suitable method for compressing the data in Figure 2.

Did this page help you?

23 marks

Table 2 shows the Huffman codes for the characters used in the string PIEDPIPER

Table 2

Character

Character frequency

Huffman code

P

3

10

I

2

11

E

2

01

D

1

000

R

1

001

Calculate how many bits would be saved if the phrase PIEDPIPER was encoded using the Huffman codes shown in Table 2, rather than using ASCII.

You should show your working.

Did this page help you?