Computer Science (2210) · May/June 2025 · Mark scheme 22

Cambridge Computer Science (2210) mark scheme for paper 22, May/June 2025 — 2210/22/M/J/25, file 2210_s25_ms_22.pdf.

Advertisement
Loading the paper…
Text of this paper

Cambridge O Level
COMPUTER SCIENCE

2210/22

Paper 2 Algorithms, Programming and Logic

May/June 2025

MARK SCHEME
Maximum Mark: 75

Published

This mark scheme is published as an aid to teachers and candidates, to indicate the requirements of the
examination. It shows the basis on which Examiners were instructed to award marks. It does not indicate the
details of the discussions that took place at an Examiners’ meeting before marking began, which would have
considered the acceptability of alternative answers.
Mark schemes should be read in conjunction with the question paper and the Principal Examiner Report f or
Teachers.
Cambridge International will not enter into discussions about these mark schemes.
Cambridge International is publishing the mark schemes f or the May/June 2025 series f or most
Cambridge IGCSE, Cambridge International A and AS Level components, and some Cambridge O Level
components.

This document consists of 13 printed pages.
© Cambridge University Press & Assessment 2025

[Turn over

2210/22

Cambridge O Level – Mark Scheme
PUBLISHED

May/June 2025

Generic Marking Principles
These general marking principles must be applied by all examiners when marking candidate answers.
They should be applied alongside the specific content of the mark scheme or generic level
descriptions for a question. Each question paper and mark scheme will also comply with these
marking principles.
GENERIC MARKING PRINCIPLE 1:
Marks must be awarded in line with:
•
•
•

the specific content of the mark scheme or the generic level descriptors for the question
the specific skills defined in the mark scheme or in the generic level descriptors for the question
the standard of response required by a candidate as exemplified by the standardisation scripts.

GENERIC MARKING PRINCIPLE 2:
Marks awarded are always whole marks (not half marks, or other fractions).
GENERIC MARKING PRINCIPLE 3:
Marks must be awarded positively:
•
•
•
•
•

marks are awarded for correct/valid answers, as defined in the mark scheme. However, credit
is given for valid answers which go beyond the scope of the syllabus and mark scheme,
referring to your Team Leader as appropriate
marks are awarded when candidates clearly demonstrate what they know and can do
marks are not deducted for errors
marks are not deducted for omissions
answers should only be judged on the quality of spelling, punctuation and grammar when these
features are specifically assessed by the question as indicated by the mark scheme. The
meaning, however, should be unambiguous.

GENERIC MARKING PRINCIPLE 4:
Rules must be applied consistently, e.g. in situations where candidates have not followed
instructions or in the application of generic level descriptors.
GENERIC MARKING PRINCIPLE 5:
Marks should be awarded using the full range of marks defined in the mark scheme for the question
(however; the use of the full mark range may be limited according to the quality of the candidate
responses seen).
GENERIC MARKING PRINCIPLE 6:
Marks awarded are based solely on the requirements as defined in the mark scheme. Marks should
not be awarded with grade thresholds or grade descriptors in mind.

© Cambridge University Press & Assessment 2025

Page 2 of 13

2210/22

Cambridge O Level – Mark Scheme
PUBLISHED

May/June 2025

Annotations guidance for centres
Examiners use a system of annotations as a shorthand for communicating their marking decisions to
one another. Examiners are trained during the standardisation process on how and when to use
annotations. The purpose of annotations is to inform the standard isation and monitoring processes
and guide the supervising examiners when they are checking the work of examiners within their team.
The meaning of annotations and how they are used is specific to each component and is understood
by all examiners who mark the component.
We publish annotations in our mark schemes to help centres understand the annotations they may
see on copies of scripts. Note that there may not be a direct correlation between the number of
annotations on a script and the mark awarded. Similarly, the use of an annotation may not be an
indication of the quality of the response.
The annotations listed below were available to examiners marking this component in this series.
Annotations
Annotation

Meaning
Correct point
Incorrect point
Follow through
Repetition
Ignore
Benefit of doubt given
Content of response too vague
Not answered question
Omission
Section not relevant
Section incorrect

Highlighter

Highlights part of the answer or shows structure of complex answers
Page or response seen by examiner
AO2 mark
AO3 mark
Not enough
Required item one

© Cambridge University Press & Assessment 2025

Page 3 of 13

2210/22

Annotation

Cambridge O Level – Mark Scheme
PUBLISHED

May/June 2025

Meaning
Required item two
Required item three
Correct awarding one mark
Correct awarding two marks
Correct awarding three marks
Correct awarding four marks
Correct awarding five marks
Correct awarding six marks
Correct awarding seven marks
Correct awarding eight marks
Correct awarding nine marks

Mark scheme abbreviations
/
//
underline
max
()

separates alternative words / phrases within a marking point
separates alternative answers within a marking point
actual word given must be used by candidate (grammatical variants accepted)
indicates the maximum number of marks that can be awarded
the word / phrase in brackets is not required, but sets the context

Note:

No marks are awarded for using brand names of software packages or hardware.

© Cambridge University Press & Assessment 2025

Page 4 of 13

2210/22

Cambridge O Level – Mark Scheme
PUBLISHED

Question
1

Answer

Marks

D

1

Question
2

May/June 2025

Answer

Marks

One mark for each correct line, max three

3

Component part

Example statements
the height of the f ence
the length of the f ence

process

The amount of paint required is 40
square metres.
output
the colour of the paint
input

The area of fence is calculated as
40 square metres.

Question
3

Answer
One mark per correct piece of test data,

Marks
4

Normal test data: −50 (any integer value between 0 and −100, inclusive)
Abnormal test data: 50 (any value outside the range 0 and −100, inclusive, or
any non-numeric input and non-integers
Extreme test data: 0 // −100
Boundary test data: 1 // 0 // −100 // −101

Question
4(a)

Answer
To check that the value entered has not changed on input.

© Cambridge University Press & Assessment 2025

Page 5 of 13

Marks
1

2210/22

Cambridge O Level – Mark Scheme
PUBLISHED

Question
4(b)

May/June 2025

Answer
One mark per mark point, max six
MP1
MP2
MP3
MP4

At least one appropriate working loop
First inputs of numbers all stored in array Numbers
Correct second input made for each number
Working selection statement to compare first and second inputs one at
a time
MP5 If numbers don’t match, appropriate output, including both values input
and a message requiring re-input
MP6 New input stored in current array location (replacing original input)
MP7 Final output confirming completion, outside loop.
For example,
// variable and array declarations or initialisations
// are not required for this question
FOR Index  1 TO 10
INPUT Numbers[Index]
NEXT Index
FOR Index  1 TO 10
INPUT CheckNumber
IF CheckNumber <> Numbers[Index]
THEN
OUTPUT CheckNumber, " and ", Numbers[Index], " do
not match. Please re-enter the number. "
INPUT Numbers[Index]
ENDIF
NEXT Index
OUTPUT "The check has been completed."

© Cambridge University Press & Assessment 2025

Page 6 of 13

Marks
6

2210/22

Cambridge O Level – Mark Scheme
PUBLISHED

Question
5(a)

5(b)

Answer
One mark per mark point

Marks
5

•

Line 01 / DECLARE Names : ARRAY[1:500] OF REAL
should be DECLARE Names : ARRAY[1:500] OF STRING

•

Line 09 / Total  100
should be Total  0

•

Line 11 / INPUT Names[Index]
should be INPUT Names[Counter]

•

Line 13 / Total  Counter + Heights[Counter]
should be Total  Total + Heights[Counter]

•

Line 20 / OUTPUT "The shortest height is ", Heights
should be OUTPUT "The shortest height is ", Shortest
or OUTPUT "The shortest height is ", Heights[Index]

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22

DECLARE Names : ARRAY[1:500] OF STRING
DECLARE Heights : ARRAY[1:500] OF REAL
DECLARE Shortest : REAL
DECLARE Total : REAL
DECLARE Counter : INTEGER
DECLARE Index : INTEGER
Shortest  500
Index  0
Total  0
FOR Counter  1 TO 500
INPUT Names[Counter]
INPUT Heights[Counter]
Total  Total + Heights[Counter]
IF Heights[Counter] < Shortest
THEN
Shortest  Heights[Counter]
Index  Counter
ENDIF
NEXT Counter
OUTPUT "The shortest height is ", Shortest
OUTPUT "The shortest person is ", Names[Index]
OUTPUT "The average height is ", Total / 500

One mark per mark point

2

MP1 Output statement with correct calculation of average, or use of a
variable average.
MP2 Correct use of ROUND function set to 1 decimal place.
For example,
OUTPUT ROUND(Total / 500, 1)

© Cambridge University Press & Assessment 2025

May/June 2025

Page 7 of 13

2210/22

Cambridge O Level – Mark Scheme
PUBLISHED

Question
5(c)

May/June 2025

Answer

Marks

One mark per statement, max four

4

MP1 Declaration of new variable for tallest person / largest value at start of
algorithm
MP2 Initialisation of largest variable to a low number e.g. 0
MP3 New selection statement after input of height to compare it with current
largest value
MP4 If input of height is larger than current largest variable, it should become
the new largest value
MP5 Outside the loop, output the current value of the largest variable.

Question
6(a)

Answer

Marks

One mark per mark point
MP1
MP2
MP3
MP4
MP5
MP6

Correct Number and Index columns
Correct Word column
Correct Continue column
Correct V1 and V2 column
Correct L1 and L2 column
Correct OUTPUT column

Number Index
2

6

1

Word
RACECAR

Continue V1 V2 L1 L2
TRUE

1

7

R

R

2

6

A

A

3

5

C

C

4

4

OUTPUT

Successful
2

TREAT

TRUE

1

5

T

T

2

4

R

A

FALSE

6(b)

Finds words that read the same forwards and backwards.

© Cambridge University Press & Assessment 2025

Page 8 of 13

NOT
successful

1

2210/22

Cambridge O Level – Mark Scheme
PUBLISHED

Question
6(c)

May/June 2025

Answer
One mark per mark point, max three
MP1 Uses an index to mark the start and end of each word // uses V1 to
mark the start of the word and V2 to mark the end
MP2 After each check, these are moved to the next character in the word at
each end of the word // V1 is incremented by 1 and V2 is decremented
by 1 after each check.
MP3 When the two indexes match or cross, the whole word has been
checked // When V1 = V2 or V1 > V2, the whole word has been
checked
MP4 The algorithm will exit if it is found that two compared letters are not the
same.

© Cambridge University Press & Assessment 2025

Page 9 of 13

Marks
3

2210/22

Cambridge O Level – Mark Scheme
PUBLISHED

Question
7(a)

May/June 2025

Answer

Marks

One mark per mark point, max six
MP1 input Value
MP2 correct check that Value is
between −20 and 50,
exclusive
MP3 totalling values
MP4 counting number of values
MP5 checking Count = 50 / >= 50
MP6 output of total and average

6

START
Count  0
Total  0

INPUT Value

Total  Total + Value

No

IS Value <=
–20 OR Value
>= 50 ?

IS Count = 50
?

Count  Count + 1

Yes

No

Yes
OUTPUT Total

OUTPUT Total/50

STOP

7(b)

One mark per statement
MP1
MP2
MP3
MP4

4

Change INPUT Value so that it saves values into an array
… using the counter as the index
Outside the (first) loop, set up a loop that will iterate 50 times
Use an output statement inside the (second) loop to output the contents
of the array, using the counter as the index.

© Cambridge University Press & Assessment 2025

Page 10 of 13

2210/22

Cambridge O Level – Mark Scheme
PUBLISHED

Question
8(a)

May/June 2025

Answer
One mark for the logic gate and one mark for the truth table

Marks
2

XOR logic gate symbol:

Truth table:

8(b)(i)

A

B

X

0

0

0

0

1

1

1

0

1

1

1

0

One mark per mark point

2

MP1 A AND
MP2 (NOT B OR NOT C) // NOT(B AND C) // (B NAND C)
Or
One mark per mark point
MP3 A AND NOT B
MP4 OR A AND NOT C
Example answers
(X =) A AND (NOT B OR NOT C) // A AND NOT (B AND C) // A AND (B NAND
C)
(X =) A AND NOT B OR A AND NOT C

© Cambridge University Press & Assessment 2025

Page 11 of 13

2210/22

Cambridge O Level – Mark Scheme
PUBLISHED

Question
8(b)(ii)

Answer

A

B

C

X

0

0

0

0

0

0

1

0

0

1

0

0

0

1

1

0

1

0

0

1

1

0

1

1

1

1

0

1

1

1

1

0

4

Answer

Marks

Two marks for all four fields correctly identified
One mark for two or three fields correctly identified
Data type

9(b)

Marks

Four marks for eight correct outputs
Three marks for six or seven correct outputs
Two marks for four or five correct outputs
One mark for two or three correct outputs

Question
9(a)

May/June 2025

Field

Boolean

Subway

integer

Population // Founded // Identification

real

AverageIncome

text

Name // Country // Continent // Identification

One mark per mark point
MP1
MP2
MP3
MP4

4

All correct fields in SELECT
Correct use of key word FROM
Correct field in WHERE: Continent
Correct criterion in WHERE: "Asia" // 'Asia'

Correct code:
SELECT Name, Country, Population
FROM CapitalCity
WHERE Continent = "Asia"; // 'Asia';

© Cambridge University Press & Assessment 2025

2

Page 12 of 13

2210/22

Cambridge O Level – Mark Scheme
PUBLISHED

May/June 2025

Question

Answer

10

Due to an issue with this question, the question has been removed from the
question paper.

© Cambridge University Press & Assessment 2025

Page 13 of 13

Marks
15

Advertisement