AQA GCSE Computer Science Paper 1, June 2025: question 7

A PrepWise guide to a real paper, with our descriptions and answers. Not made or approved by AQA.

PrepWise guide: AQA GCSE Computer Science Paper 1Question 77 of 11

Figure 7 shows a pseudo-code subroutine called testSub.

Figure 7
A subroutine set out in ten short lines, indented in places.Open full size to read the labels (Figure 7, opens in a new tab)
07.1[1 mark]

Say what task the subroutine in Figure 7 performs.

See how you would score on Pseudocode & Flowcharts

Our own questions on this topic, marked straight away, so you see what to revise. Free now.

Show model answer for 07.1Hide model answer for 07.1

It tests whether a number is even. It returns True for an even number and False for an odd one.

1 mark

How the marks are earned

  1. It finds out whether a number is odd or even, or a multiple of 2.
  2. Or it returns True if the number is even and False if it is odd.
  3. Or it returns True if the number is a multiple of 2 and False if it is not.
  4. Or True comes back when the remainder after dividing by 2 is 0, and False when the remainder is 1 or anything other than 0.
Revise Pseudocode & Flowcharts
07.2[2 marks]

List the two values output when testSub(10) is called.

See how you would score on Pseudocode & Flowcharts
Show model answer for 07.2Hide model answer for 07.2
Program code        Output
OUTPUT number       10
OUTPUT x            0
2 marks

How the marks are earned

  1. OUTPUT number prints 10.
  2. OUTPUT x prints 0.

Why it scores

The first output is the parameter itself, 10. The second output is what is left over after dividing 10 by 2, which is 0.

Revise Pseudocode & Flowcharts
07.3[1 mark]

Give the value testSub(8) returns.

See how you would score on Pseudocode & Flowcharts
Show model answer for 07.3Hide model answer for 07.3

True. Dividing 8 by 2 leaves a remainder of 0, so the subroutine takes the THEN branch and returns True.

1 mark

How the marks are earned

  1. True.
  2. Case is ignored.
Revise Pseudocode & Flowcharts
07.4[1 mark]

Name the parameter of testSub.

See how you would score on Pseudocode & Flowcharts
Show model answer for 07.4Hide model answer for 07.4

number. It is the name in the brackets on the first line, which receives the value passed in.

1 mark

How the marks are earned

  1. number.
  2. Case is ignored.
Revise Pseudocode & Flowcharts
07.5[2 marks]

Give two features of programming in a structured way.

See how you would score on Computational Thinking
Show model answer for 07.5Hide model answer for 07.5

1. The program is split into subroutines, each doing one job. 2. The subroutines use parameters to receive values and return values to give results back.

2 marks

How the marks are earned

  1. Any two different ideas from this list and the points below earn the two marks. Idea 1: the program is modular, meaning it is split into sections, chunks or modules, uses subroutines, or uses named blocks of code, or blocks of code kept out of line; these phrasings count as one idea.
  2. It uses parameters.
  3. It uses return values.
  4. It uses local variables.
  5. It uses selection.
  6. It uses iteration.
  7. It has well documented interfaces, meaning clearly documented inputs and outputs of its subroutines.

Why it scores

Each line is a different feature, so the two marks are separate. The second line names two features, parameters and return values, and only one of them is needed for its mark.

Revise Computational Thinking
AQA owns the copyright in its exam questions, so we cannot copy their wording. These descriptions and answers are ours. Not made or approved by AQA.[7 marks]