All papers

Computer Science · AQA 8525 · Paper 1: Computational thinking and programming skills · June 2018

AQA GCSE Computer Science Paper 1: Computational thinking and programming skills June 2018 question paper 8525/1

2h 90 marks

AQA 8525 · Paper 1

10 questions
Report a problem
What is wrong?

Goes to whoever maintains the question split. No account needed and nothing is published on this page.

Question 1

Figure for question 1

[2 marks]

Answer
Mark scheme for question 1.1
Figure for question 1

[3 marks]

Answer
Mark scheme for question 1.2

Question 2

Figure for question 2
Figure for question 2
Question 2, shown as an image
Figure for question 2

[1 mark]

Answer
Mark scheme for question 2.1
Figure for question 2
Question 2, shown as an image
Figure for question 2

[1 mark]

Answer
Mark scheme for question 2.2
Figure for question 2
Question 2, shown as an image
Figure for question 2

[1 mark]

Answer
Mark scheme for question 2.3
Figure for question 2 Figure for question 2

[1 mark]

Answer
Mark scheme for question 2.4
Figure for question 2

[1 mark]

Answer
Mark scheme for question 2.5
Figure for question 2
Question 2, shown as an image

[1 mark]

Answer
Mark scheme for question 2.6
Figure for question 2
Question 2, shown as an image

[1 mark]

Answer
Mark scheme for question 2.7
Figure for question 2
Question 2, shown as an image

[1 mark]

Answer
Mark scheme for question 2.8

Question 3

Figure for question 3
Figure for question 3
Question 3, shown as an image

[1 mark]

Answer
Mark scheme for question 3.1
Figure for question 3
Question 3, shown as an image

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

[1 mark]

Answer
Mark scheme for question 3.2
Figure for question 3
Question 3, shown as an image

[1 mark]

Answer
Mark scheme for question 3.3

Question 4

Figure for question 4
Figure for question 4
Question 4, shown as an image

[2 marks]

Answer
Mark scheme for question 4.1
Figure for question 4
Question 4, shown as an image

You should show your working.

[4 marks]

Answer
Mark scheme for question 4.2
Figure for question 4
Question 4, shown as an image

the number of bit patterns available from 16 to 32. Shade one lozenge which shows the minimum sample resolution (in bits) she can choose that will allow her to do this.

Figure for question 4

[1 mark]

Answer
Mark scheme for question 4.3
Figure for question 4
Question 4, shown as an image
Figure for question 4
Question 4, shown as an image

[1 mark]

Answer
Mark scheme for question 4.4

Question 5

Figure for question 5

CHAR_TO_CODE (' a ') returns the value 97 CHAR_TO_CODE (' z ') returns the value 122 CHAR_TO_CODE(' ` ') returns the value 96 CHAR_TO_CODE(' { ') returns the value 123

Develop an algorithm, using either pseudo-code or a flowchart, that:

maths symbol asks the user to enter a character

maths symbol outputs 'LOWER' if the user has entered a lowercase character

maths symbol outputs 'NOT LOWER' if the user has entered any other character.

You must use the built-in CHAR_TO_CODE subroutine in your answer.

[7 marks]

Answer
Mark scheme for question 5

Question 6

Figure for question 6
Figure for question 6

[1 mark]

Answer
Mark scheme for question 6.1
Figure for question 6

Explain why this is a better choice than using the identifier s.

[2 marks]

Answer
Mark scheme for question 6.2
Figure for question 6 Figure for question 6

[1 mark]

Answer
Mark scheme for question 6.3
Figure for question 6
Question 6, shown as an image
Figure for question 6

[6 marks]

Answer
Mark scheme for question 6.4
Figure for question 6
Question 6, shown as an image
Figure for question 6

[3 marks]

Answer
Mark scheme for question 6.5
Figure for question 6
Question 6, shown as an image

[1 mark]

Answer
Mark scheme for question 6.6
Figure for question 6
Question 6, shown as an image

State two reasons why the programmer decided to implement the algorithm as a subroutine.

Reason 1:

Question 6, shown as an image

[2 marks]

Answer
Mark scheme for question 6.7

Question 7

Figure for question 7

[8 marks]

Answer
Mark scheme for question 7

Question 8

Figure for question 8

[1 mark]

Answer
Mark scheme for question 8.1
Figure for question 8
Question 8, shown as an image

• The system has two sensors, A1 and A2, that detect if a customer is near. The audio plays if either of these sensors is activated.

• The system should only play if another audio system, S, is not playing.

• The output from the circuit, for whether the advert should play or not, is Q.

Complete the logic circuit for this system.

Figure for question 8

[3 marks]

Answer
Mark scheme for question 8.2

Question 9

Figure for question 9
Question 9, shown as an image

BLOCK_ON_TOP(column) returns the label of the block on top of the column given as a parameter.

MOVE(source, destination) moves the block on top of the source column to the top of the destination column. HEIGHT(column) returns the number of blocks in the specified column.

Figure for question 9

[3 marks]

Answer
Mark scheme for question 9.1
Figure for question 9

[3 marks]

Answer
Mark scheme for question 9.2
Figure for question 9

[3 marks]

Answer
Mark scheme for question 9.3
Figure for question 9
Question 9, shown as an image

Your algorithm should work however many blocks start in column 0. You may assume there will always be at least one block in column 0 at the start and that the other columns are empty.

The order of the blocks must be preserved.

The MOVE subroutine must be used to move a block from one column to another. You should also use the HEIGHT subroutine in your answer.

For example, if the starting arrangement of the blocks is:

Figure for question 9

Then the final arrangement should have block B above block A:

Figure for question 9

[5 marks]

Answer
Mark scheme for question 9.4

Question 10

Figure for question 10
Figure for question 10

Authenticate('alice', 'woof2006')

Figure for question 10

[3 marks]

Answer
Mark scheme for question 10.1
Figure for question 10

Authenticate('bob', 'abf32')

[1 mark]

Answer
Mark scheme for question 10.2
Figure for question 10 Figure for question 10

[1 mark]

Answer
Mark scheme for question 10.3
Figure for question 10

He also replaces line 14 with

RETURN false

Explain how the programmer has made the subroutine more efficient.

[2 marks]

Answer
Mark scheme for question 10.4

The paper as printed

Spotted a mistake on this page?Report a problem