Computer Science · June 2025 · Mark scheme · Paper 2A

Edexcel International GCSE Computer Science mark scheme for Paper 2A, June 2025 — 4CP0/2A, file 4CP0_2A_rms_20250821.pdf.

Advertisement
Loading the paper…
Text of this paper

Mark Scheme (Results)
Summer 2025

Pearson Edexcel International GCSE
In Computer Science (4CP0)
Paper 2A: Application of Computational
Thinking

Edexcel and BTEC Qualifications
Edexcel and BTEC qualifications are awarded by Pearson, the UK’s largest awarding
body. We provide a wide range of qualifications including academic, vocational,
occupational and specific programmes for employers. For further information visit
our qualifications websites at www.edexcel.com or www.btec.co.uk. Alternatively, you
can get in touch with us using the details on our contact us page at
www.edexcel.com/contactus.

Pearson: helping people progress, everywhere
Pearson aspires to be the world’s leading learning company. Our aim is to help everyone
progress in their lives through education. We believe in every kind of learning, for all kinds of
people, wherever they are in the world. We’ve been involved in education for over 150 years,
and by working across 70 countries, in 100 languages, we have built an international
reputation for our commitment to high standards and raising achievement through
innovation in education. Find out more about how we can help you and your students at:
www.pearson.com/uk

Summer 2025
Question Paper Log Number P78639A
Publications Code 4CP0_2A_2506_MS
All the material in this publication is copyright
© Pearson Education Ltd 2025

General Marking Guidance
•

All candidates must receive the same treatment. Examiners must mark the
first candidate in exactly the same way as they mark the last.

•

Mark schemes should be applied positively. Candidates must be rewarded for
what they have shown they can do rather than penalised for omissions.

•

Examiners should mark according to the mark scheme not according to their
perception of where the grade boundaries may lie.

•

There is no ceiling on achievement. All marks on the mark scheme should be
used appropriately.

•

All the marks on the mark scheme are designed to be awarded. Examiners
should always award full marks if deserved, i.e. if the answer matches the
mark scheme. Examiners should also be prepared to award zero marks if the
candidate’s response is not worthy of credit according to the mark scheme.

•

Where some judgement is required, mark schemes will provide the principles
by which marks will be awarded and exemplification may be limited.

•

When examiners are in doubt regarding the application of the mark scheme
to a candidate’s response, the team leader must be consulted.

•

Crossed out work should be marked UNLESS the candidate has replaced it
with an alternative response.

Paper 2 – Application of Computational Thinking

Mark Scheme - Python
Question mp
1(a)
A1

Answer
The only correct answer is B

Additional Guidance

A is not correct because for is used in iteration
C is not correct because new is used to declare an object
D is not correct because while is used in repetition

Question mp
1(b)(i)
B1
B2
B3

Mark

1

Answer
Award one mark for each correct cell:

Additional Guidance

Mark



1 of 23

3

Paper 2 – Application of Computational Thinking

Question mp Answer
1(b)(ii)
B4 Line 15 - : added to end of line

2 of 23

B5

Line 20 – 0 changed to 1

B6

Line 22 – missing comma added between string and greenCount

Additional guidance

Mark

3

Paper 2 – Application of Computational Thinking

Question mp Answer
1(c)(i)
Award one mark for:
•
C1

•
•
•

To store a value that must not be changed/prevent accidental
change of value
To simplify code maintenance/so that if the value must be updated
the change only has to made in a single place
To avoid inconsistency error of specifying same value multiple times
To make code more readable/give meaningful names to values

Additional guidance
Accidental change cannot refer
to ‘user’

1

Question mp Answer
1(c)(ii)
Award two marks for a linked description such as:
C2
• A variable stores a single value (1) whereas an array stores multiple
C3
values (1)

Additional guidance

Question mp Answer
1(d)(i)

Additional guidance
Accept ‘main’

D1

Award one mark for:
•

getWages (1)

Mark

2

Mark

Accept:
def getWages
def getWages (inSales, inAge)
line 7 (Python)

3 of 23

Mark

1

Paper 2 – Application of Computational Thinking

Question mp Answer
1(d)(ii)
Award one mark for:
D2
• and (1)

Additional guidance
Do not accept line numbers

Mark

Accept:
&&

1

Question mp Answer
1(d)(iii)
D3 Award one mark for any of the following:
• sales (1)
• wages (1)
• inSales (1)

Additional guidance
Do not accept line numbers

Mark
1

Question mp
1(d)(iv)

Additional guidance
Do not accept line numbers

Mark

D4

4 of 23

Answer
Award one mark for any of the following:
•
•

inSales (1)
inAge (1)

1

Paper 2 – Application of Computational Thinking

Question mp
2(a)
A1

Answer
The only correct answer is D

Additional Guidance

Mark

A is not correct because abstraction is a technique used in computational
thinking
B is not correct because encryption is a security measure
C is not correct because iteration is a programming construct
1

Question mp Answer
2(b)(i)
Award one mark for each correct cell:
B1 real/double/float: (1)
B2
• pay rate/18.75 (1)
•
•
•

total pay/356.25 (1)
tax/0.2/71.25 (1)
income/285.00 (1)

int/integer: (1)
• hours/19 (1)

5 of 23

Additional guidance

Mark

Example must match data type
for B2
Award suitable example even
if not taken from payslip
Accept string and matching
example e.g. Hours

2

Paper 2 – Application of Computational Thinking

Question mp Answer
2(b)(ii)
Award one mark for each correct cell:
Input:
B3
• Pay Rate/18.75 (1)
• Hours/19 (1)
Process:
•
•
•

Pay Rate * Hours/18.75 * 19 (1)
Total Pay * Tax/356.25 * 0.2 (1)
Total Pay – Tax/356.25 – 71.25 (1)

Additional guidance

Mark

Don’t need output e.g. total
pay, just the calculation part
e.g. pay rate * hours:
Total pay = pay rate * hours
Accept 0.2 or 20% as part of
calculation for tax

B4

Ok to mix types e.g. Total Pay
* 20%
Accept descriptions such as
multiply the pay rate by hours
(hours etc could be taken from
input box/ B3 mark)
Output:

B5

6 of 23

•
•
•

Total Pay/356.25 (1)
Tax/71.25 (1)
Income/285 (1)

3

Paper 2 – Application of Computational Thinking

Question mp
2(c)(i)
C1
C2

Answer
Award one mark for one correct cell:
Award two marks for all three correct cells:
•
•
•

Normal: any value between 0-255 e.g. 125
Boundary: 0/255
Erroneous: any negative value/any value 256 or above

Additional Guidance
Accept -1/256 for boundary
data

Mark

Don’t accept non-int types

2

Question

mp Answer

2(c)(ii)

Additional Guidance

Mark

Award one mark for any of the following up to a maximum of four marks:
C3

Input changed to int before comparison (1)

C4

Relational operator used correctly to check for valid input (both >=0 and
<256 or equivalent) (1)

Allow:

C5

‘and’ logical operator used to combine relational tests (1)

or operator acceptable if
candidate rearranges the
selection statement and test
works for correct code option
– check if C4 is now awardable

C6

Calling of getHex(userInput) (1)

Call must be inside print ( )

>0 and/or <255

Subprogram and argument
must be functionally correct
Ignore additional
variables/strings in print
statement

7 of 23

4

Paper 2 – Application of Computational Thinking

8 of 23

Paper 2 – Application of Computational Thinking

Question mp
3(a)(i)
A1
A2

Answer
Award one mark for each:
• Pass 1 correct (1)
• Pass 2 correct (1)
9 11 12 19 14 18
9 11 12 14 18 15
9 11 12 14 15 17

Additional Guidance
Ignore lines with individual swaps and
only award correct completed passes
15
17
18

17
19 (1)
19 (1)

Must show ONLY the 19 moving in first pass and ONLY the 18
moving in second pass

9
9
9
9
9
9
9

11
11
11
11
11
11
11

12
12
12
12
12
12
12

19
14
14
14
14
14
14

14
19
18
18
18
15
15

18
18
19
15
15
18
17

15
15
15
19
17
17
18

Mark

17
17
17
17
19 (1)
19
19 (1)

Accept accurate right-to-left bubble sort
as shown below
9
9
9
9
9

11
11
11
11
11

12
12
12
12
12

19
14
14
14
14

14
19
15
15
18

18
15
19
17
15

15
18
17
19
17

17
17 (1)
18
18
19 (1)

Complete sort cannot be the 1st /only line
in response – 0 marks as this will be taken
as both 18 and 19 moving in first pass

9 of 23

2

Paper 2 – Application of Computational Thinking

Question mp
3(a)(ii)
A3

Question mp
3(a)(iii)
A4

Answer
Award one mark for:
• 4

Answer
Award one mark for:
• 3

Additional Guidance
If right-to-left pass completed
in Q3ai, can only accept 2
swaps

Mark

Additional Guidance
Do not accept 2 – 3rd pass
required for algorithm to
finish

Mark

If right-to-left pass completed
in Q3ai, can only accept 5
passes

Question mp
3(b)
B1

Answer
Award one mark for:
•

Binary search

Award one mark for any of the following:
B2

10 of 23

•
•

Divide and conquer / list halves each time(1)
Fewer searches needed (1)

Additional guidance
Accept any other divide and
conquer search algorithm
(google if necessary)

1

1
Mark

Accept ‘binary’ on its own as
search in question
Do not accept points about
being ‘already sorted’ as this is
in question

2

Paper 2 – Application of Computational Thinking

Question mp
3(c)
C1

Answer
Award one mark for each of:
(while) Loop ends only when 0 entered (1)

Additional guidance

Mark

Any method
e.g. while age != 0:
By coding 2nd selection box from flowchart – no output
required
Must come after some attempt to process age or count –
award even if inside loop.
ignore ‘other’ divide by zero errors introduced by candidate

C2

Avoiding divide by zero error (1)

Must follow logic of flowchart e.g.:
if count == 0: (or count != 0)
…
else
…
Must come after some attempt to process age or count –
award even if inside loop.
Must target calculated average (even if formula not correct)

C3

Average value rounded to whole number (1)

Any method to get int
Accept casting to int (round not in spec, but string
manipulation is)
Accept integer division
5

11 of 23

Paper 2 – Application of Computational Thinking

Correct

12 of 23

C4

Correct value calculated for average and
count (1)

Allow even if 0 used to initialise count in B1 (this must be
only error in calculation) – set count to -1 to test

C5

Count and average included in a
syntactically correct final print statement (1)

Award even if never runs
Must include both variables (may also include string)

Typical

Paper 2 – Application of Computational Thinking

Question mp
4(a)
A1

Answer
Breaking problem into small parts

Question mp Answer
4(b)
Award two marks for a linked explanation such as:
• Programmer can ignore unnecessary detail (1) because it doesn’t
matter how library generates the number (1)
• Eli can focus on just his own code (1) because library hides the code
that generates the random numbers (1)
• It doesn’t matter how the subprogram generates the random
B1
number (1) because Eli only needs the number itself (1)
B2

Additional Guidance

1

Additional guidance

Mark

First mark for meaning of
abstraction (focus on
necessary parts / hiding
unnecessary detail)
Second mark for linking use of
random library
Do not accept answers
relating to modelling realworld scenarios as this is in
the question

13 of 23

Mark

2

Paper 2 – Application of Computational Thinking

Question mp Answer
4(c)
Award one mark for each of:
C1

Booster variable initialised to 1 (1)

C2

At least one given constant used correctly (1)

C3

Loop used to make three throws (1)

Additional guidance

Mark

booster = 1

Either type
roll = random.randint(1,SIDES)
roll = random.randint(1,6)

C4

Use of random.randint( ) to assign roll a value between 1 and
6 (1)

Any accurate method
do not accept:
random.randint(6) random.randint(SIDES)

any method e.g.
C5

Check for both 3 or 6 for at least one roll (1)

if (roll == 3 or roll == 6)
if roll % 3 == 0
Must be indented under condition in C5.

C6

booster incremented (1)

Can award even if C5 not functioning
correctly, but must be idea of only boosting
on 3 and 6

Even if not displayed
C7

14 of 23

Correct final score calculated from 3 random rolls (1)

Does not need to use given variable
(finalScore) to get this mark

8

Paper 2 – Application of Computational Thinking

All three throws and final score as shown in
figure 6.
C8

Correct output strings including each roll score and final
score with appropriate strings (1)

roll and finalScore variables should
match candidate solution
Allow sensible alternate strings e.g. Roll for
Rolled or Total for Score – Ignore : (colon)

15 of 23

Paper 2 – Application of Computational Thinking

16 of 23

Paper 2 – Application of Computational Thinking

Question mp Answer
5(a)(i)
A1 final score not accurate (1) because score is resetting/score
A2 keeps going back to zero (in each iteration of the loop) (1)

Additional guidance
‘Score not accurate’ is not enough on its
own
‘Score on line 20’ or ‘Score output to
DISPLAY’ would count as final score.

Mark
2

Question mp Answer

Additional guidance

Mark

5(a)(ii)

Processes that can be included
Award up to two marks for a linked description such as:
•
A3
A4

•
•

Asking 10 addition questions (1) and calculating final
score (1)
Asking randomised adding questions (1) and checking
user answer against computer answer (1)
Creating adding quiz with random numbers up to 99
(1) and outputting number of correct answers (1)

Concept of this being an ‘Adding Quiz’
required
•
•
•
•
•
•

17 of 23

Getting random numbers for
question
Calculating sum of two random
numbers for correct answers
comparing user answer to correct
answer
incrementing /tracking score
asking 10 questions (loop)
outputting final score

2

Paper 2 – Application of Computational Thinking

Question mp Answer
5(b)
B1

Open file for writing (1)

Additional guidance

Mark

“w” mode only
Accept “w+”
Must address all 4 grades

B2

Selection used to get grade (1)

B3

Output suitable message to say file created (1)

Does not have to be accurate on boundaries
e.g. >80 is ok for distinction etc.1

Even if element not used in rest of program
B4

Evidence of 2D indexing (1)

2D indexing or 1D index within for-each
structure or sum(1Darray) or min(1Darray)
etc.
At least 1 inner value accessed
Any method e.g.:

B5

Lowest score must be found and omitted/subtracted from
calculated scores (all arrays) (1)

•
•
•

List methods
Selection statements
iterable functions

must be done programmatically

18 of 23

B6

At least 1 line written to file (1)

B7

Add line feed to write line after both score and grade (1)

B8

Output file all correct (1)

Must contain something generated by
program (total/result), does not have to be
correct total or grade

8

Paper 2 – Application of Computational Thinking

19 of 23

Paper 2 – Application of Computational Thinking

Question mp
6

Answer
Award one mark for each of:

Additional guidance

A1

Both City and Temp taken as input (1)

A2

Both correct conversion calculation coded (1)

Does not have to be used

A3

Any relevant subprogram has been declared (1)

At least one relevant subprogram declared.
def name(param): or
def name():
and one line of code indented

A4

Temperature in correct parallel position is updated when
existing city is input (1)

A5

Loop for accessing all items in either array (1)

For each acceptable for this mark

A6

Table includes header and dividing line (1)

print(“city Celsius fahrenheit”)
print(“-------------”)

A7

Mechanism for getting temp from string and completing
conversion (1)

Include int( ) and passed to formula for at
least one temperature value

A8

Mechanism for getting scale C/F (1)

A9

All rows output to table with corresponding city and (at least
one) temperature values (1)

Mark

(same index value used)
do not accept hard coded
Ignore header (A6) and average (A11)

A10

A11

Table (for cities) all correct (1)

Overall average correctly calculated and displayed in both
scales (1)

Must have city, C value and F value (all
accurate)
Ignore float values if calculation correct
Average may change depending on whether
whole number cast or rounded – award
accurate formula, not result.
11

20 of 23

Paper 2 – Application of Computational Thinking

LBMS (AOs: 3xAO3.2a, 3xAO3.2b, 3xAO3.3c) (Tgt: 3, 3, 3); Spec: 1.1.6(2), 1.2.1(2), 1.2.2(2), 2.1.1, 2.1.2, 2.1.5
PBMS: 2.1.1, 2.3.2(2), 2.3.3(2), 2.4.1(2), 2.5.1(2), 2.6.1(2)
Award up to a maximum of nine marks using the levels-based mark scheme below.

No rewardable content

Band 0

21 of 23

Band 1 (1-3 marks)

Band 2 (4-6 marks)

Band 3 (7-9 marks)

Little attempt to decompose the
problem into component parts

Some attempt to decompose the
problem into component parts

The problem has been decomposed
into component parts

Some parts of the logic are clear
and appropriate to the problem

Most parts of the logic are clear and
mostly appropriate to the problem

The logic is clear and appropriate to
the problem

Some appropriate use and
manipulation of data types,
variables, data structures and
program constructs

The use and manipulation of data types,
variables and data structures and
program constructs is mostly appropriate

The use and manipulation of data
types, variables and data structures
and program constructs is appropriate

Parts of the code are clear and
readable

Code is mostly clear and readable

Code is clear and readable

Finished program will not be
flexible enough with other data
sets or input

Finished program will function with some
but not all other data sets or input

Finished program could be used with
other data sets or input

The program meets some of the
given requirements

The program meets most of the given
requirements

The program fully meets the given
requirements

Mark

(9)

Paper 2 – Application of Computational Thinking

22 of 23

Paper 2 – Application of Computational Thinking

23 of 23

Pearson Education Limited. Registered company number 872828
with its registered office at 80 Strand, London, WC2R 0RL, United Kingdom

Advertisement