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

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 11 of 11

Figure 1 is a short Python program. We number its eight lines only so they can be named in the questions.

Figure 1
A short Python program listed in eight numbered lines.Open full size to read the labels (Figure 1, opens in a new tab)
01.1[1 mark]

Choose the line in Figure 1 where a calculation with an arithmetic operator happens first.

See how you would score on Trace Tables

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

Line 1
Line 5
Line 6Correct answer
Line 8
Show model answer for 01.1Hide model answer for 01.1

Line 6. It is the first line that adds two values together.

1 mark

How the marks are earned

  1. Line 6, where a value is added to itself.
  2. Choosing more than one option earns nothing.
Revise Trace Tables
01.2[1 mark]

Choose the one statement about Figure 1 that is untrue.

See how you would score on Operators
It includes a comment
It uses assignment
It uses concatenationCorrect answer
It uses iteration
Show model answer for 01.2Hide model answer for 01.2

The false statement is that the program uses concatenation, which means joining strings together. Every + in the program adds numbers, so nothing is joined as text. The comment on line 1, the assignments and the while loop are all really there.

1 mark

How the marks are earned

  1. The statement 'It uses concatenation' is the false one.
  2. Choosing more than one option earns nothing.
Revise Operators
01.3[1 mark]

Name the relational operator that Figure 1 contains. The symbol or its name is fine.

See how you would score on Operators
Show model answer for 01.3Hide model answer for 01.3

< (less than). The loop condition b < c compares two values, so < is the relational operator.

1 mark

How the marks are earned

  1. < or the words less than.
  2. Writing the assignment symbol = earns nothing.
Revise Operators
01.4[4 marks]

Fill in a trace table with columns a, b, c and Output for the whole of Figure 1.

See how you would score on Trace Tables
Show model answer for 01.4Hide model answer for 01.4
a    b    c    Output
1    1    5
2    2         2
4    3         4
8    4         8
16   5         16
4 marks

How the marks are earned

  1. First row of the table: a is 1, b is 1 and c is 5.
  2. The first output is 2.
  3. Column a continues 2, 4, 8, 16 below its first value and Output has 4, 8, 16 below its first value; neither column holds anything extra.
  4. The rest of column b is 2, 3, 4, 5, with no extra values.
  5. Different rows may be used if the order within each column is clear.
  6. A value written again on the next row of the same column does not count against the answer.
  7. If the table has any error, the maximum is 3 marks.

Why it scores

The starting values 1, 1 and 5 fill the first row. Each pass of the loop doubles a, adds 1 to b and prints the new a, giving 2, 4, 8 and 16. When b reaches 5 the test b < c fails, so the loop stops with nothing more printed.

Revise Trace Tables
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]