Computer Science (0478) · Oct/Nov 2025 · Mark scheme 23

Cambridge Computer Science (0478) mark scheme for paper 23, Oct/Nov 2025 — 0478/23/O/N/25, file 0478_w25_ms_23.pdf.

Advertisement
Loading the paper…
Text of this paper

www.dynamicpapers.com

Cambridge IGCSE™
COMPUTER SCIENCE

0478/23

Paper 2 Algorithms, Programming and Logic

October/November 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 October/November 2025 series f or most
Cambridge IGCSE, Cambridge International A and AS Level components, and some Cambridge O Level
components.

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

[Turn over

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED
Generic Marking Principles

October/November 2025
www.dynamicpapers.com

These general marking principles must be applied by all examiners when marking candidate answers. They should be applied alon gside 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 assess ed 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.

© Cambridge University Press & Assessment 2025

Page 2 of 22

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

October/November 2025
www.dynamicpapers.com

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 fu ll 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 thre sholds or
grade descriptors in mind.

© Cambridge University Press & Assessment 2025

Page 3 of 22

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

October/November 2025
www.dynamicpapers.com

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

© Cambridge University Press & Assessment 2025

Page 4 of 22

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Annotation Meaning
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
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

© Cambridge University Press & Assessment 2025

Page 5 of 22

October/November 2025
www.dynamicpapers.com

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

October/November 2025
www.dynamicpapers.com

Mark scheme abbreviations
/
separates alternative words / phrases within a marking point
//
separates alternative answers within a marking point
underline actual word given must be used by candidate (grammatical variants accepted)
max
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 6 of 22

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
1

Answer
One mark for each mark point, max 3
•
•
•

Marks
3

use of meaningful identifiers
commenting
use of procedures/functions

Question
2

October/November 2025
www.dynamicpapers.com

Answer
One mark for each correct line
Description

adding a set of numbers

displaying the result of a
calculation

Marks
4

Programming Technique

output
selection
totalling

executing a set of instructions
based on a condition

executing the same set of
instructions multiple times

Question
3

iteration
counting

Answer
B

© Cambridge University Press & Assessment 2025

Marks
1

Page 7 of 22

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
4(a)

Answer
One mark per point:
•
•
•
•

October/November 2025
www.dynamicpapers.com
Marks
4

input of adult and child places
calculation of total of adults and child places
… with booking fee added
output of the total using an appropriate message

Example:
OUTPUT "Please enter the number of adult tickets "
INPUT Adult
OUTPUT "Please enter the number of children "
INPUT Child
Total  (Adult * 12.99) + (Child * 7.99) + 1.99
OUTPUT "The total cost is ", Total
4(b)

One mark per point:
•
•
•
•

4(c)(i)

4

By adding a while loop//repeat until loop
… with correct condition
With a suitable message
input of adult inside the loop

One mark per bullet point:
•
•

2

A AND B
AND NOT C

X = A AND B AND NOT C

© Cambridge University Press & Assessment 2025

Page 8 of 22

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
4(c)(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

0

1

0

1

0

1

1

0

1

1

1

1

0

4 marks for 8 correct outputs
3 marks for 6/7 correct outputs
2 marks for 4/5 correct outputs
1 mark for 2/3 correct outputs

© Cambridge University Press & Assessment 2025

Page 9 of 22

October/November 2025
www.dynamicpapers.com
Marks
4

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
5(a)

Answer

Marks

One mark for each correct column
Count

5(b)

October/November 2025
www.dynamicpapers.com

Number

4
Lowest

Highest

900

1

1

563

563

1

2

21

21

1

3

376

21

376

4

99

21

376

5

400

21

400

One mark for reason and one mark for correction
•
•

2

the highest score is incorrect / algorithm cannot evaluate highest value if lowest evaluated
replace ELSE on line 08 with ENDIF and remove ENDIF on line 13 / remove nested IF and have single IF statements
for Highest/Lowest

© Cambridge University Press & Assessment 2025

Page 10 of 22

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
6(a)

6(b)

Answer
One mark for 2 correct rows, two marks for 3 correct rows
Name

OUTPUT

Ridwan

5

Yan

−1

Ella

3

(Linear) search

© Cambridge University Press & Assessment 2025

October/November 2025
www.dynamicpapers.com
Marks
2

1

Page 11 of 22

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
6(c)

Answer
One mark per point:
•
•
•
•
•
•

Marks
6

initialising Count and Position
inputting Name outside of loop
use of a suitable loop and condition
comparison of Name to array position
correct incrementation of Count by 1
output of correct position

Example
Repeat loop
Position  -1
Count  1
OUTPUT "Please enter a name "
INPUT Name
REPEAT
IF Name = ClassList[Count]
THEN
Position  Count
Count  6
ELSE
Count  Count + 1
ENDIF
UNTIL Count > 5
OUTPUT Position

© Cambridge University Press & Assessment 2025

October/November 2025
www.dynamicpapers.com

Page 12 of 22

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
6(c)

Answer
While loop
Position  -1
Count  1
OUTPUT "Please enter a name "
INPUT Name
WHILE Count <= 5 DO
IF Name = ClassList[Count]
THEN
Position  Count
Count  6
ELSE
Count  Count + 1
ENDIF
ENDWHILE
OUTPUT Position
For loop
Position  -1
(Count  1)
OUTPUT "Please enter a name "
INPUT Name
FOR Count  1 TO 5
IF Name = ClassList[Count]
THEN
Position  Count
ENDIF
NEXT Count
OUTPUT Position

© Cambridge University Press & Assessment 2025

Page 13 of 22

October/November 2025
www.dynamicpapers.com
Marks

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
7(a)

Answer
One mark for each line identified and corrected

October/November 2025
www.dynamicpapers.com
Marks
3

Line 02 – should be DECLARE DenaryNumber : INTEGER
Line 05 – should be FOR Count  8 TO 1 STEP -1
Line 06 – should be BinaryArray[Count]  MOD(DenaryNumber,2)
7(b)

Any one from:
•
•
•

1

Input
Output
Iteration

7(c)(i)

Range check

1

7(c)(ii)

One mark per point:

3

•
•
•

Use of a suitable loop
..,suitable condition
Correct input of DenaryNumber

Example:
REPEAT
INPUT DenaryNumber
UNTIL DenaryNumber >= 1 AND DenaryNumber <= 255

Question

Answer

Marks

8(a)(i)

EquipmentID

1

8(a)(i)

One mark per point, max 1

1

•
•

Unique field
No repeating data

© Cambridge University Press & Assessment 2025

Page 14 of 22

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
8(b)

Answer
One mark per point:
•
•
•

Marks
3

SELECT Description, Name
FROM EquipmentLoan
WHERE Returned = "No";

Question
9(a)

October/November 2025
www.dynamicpapers.com

Answer
One mark for each correct line:

Marks
3

DECLARE Name : STRING
DECLARE Age : INTEGER
DECLARE Found : BOOLEAN
9(b)(i)

One mark for each bullet point
•
•
•
•
•

5

using PROCEDURE StoreData and ENDPROCEDURE
defining the parameter correctly
correctly opening the file for write
correctly storing the name
correctly closing the file

Example
PROCEDURE StoreData(Name : STRING)
OPENFILE People.txt FOR WRITE
WRITEFILE People.txt, Name
CLOSEFILE People.txt
ENDPROCEDURE

© Cambridge University Press & Assessment 2025

Page 15 of 22

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
9 (b)(ii)

October/November 2025
www.dynamicpapers.com

Answer
One mark per bullet point:
•
•

Marks
2

use of call
correct procedure call with ‘Suella’

CALL StoreData("Suella")
10

Use the tables for A02 and A03 below to award a mark in a suitable band using a best fit approach , then add up the total.
Marks are available for:
•
•

AO2 (maximum 9 marks)
AO3 (maximum 6 marks)

Data Structures required names shown underlined must be used as given in the scenario Arrays or lists:
NumberGenerated[]
Requirements (techniques)
R1 input and validates the names of the players (iteration, input, output)
R2 generates the random numbers for each player. Calculates and store the number of points per player (iteration, totalling
and selection)
R3 finds and outputs the name and score of the players in order with a suitable message taking into account a
draw(iteration, selection and output)

© Cambridge University Press & Assessment 2025

Page 16 of 22

15

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
10

October/November 2025
www.dynamicpapers.com

Answer
Example 15-mark answer in pseudocode.
// programming techniques of iteration, selection, totalling and output are used
OUTPUT "Please enter the name of player 1 " // input and validate player 1 with
INPUT Player1
// presence check
WHILE Player1 = "" DO
OUTPUT "You must enter a name, try again "
INPUT Player1
ENDWHILE
OUTPUT "Please enter the name of player 2 " // input and validate player 2
INPUT Player2
WHILE Player2 = "" DO
OUTPUT "You must enter a name, try again "
INPUT Player2
ENDWHILE
// generating the 100 random numbers for each competitor
FOR X  1 TO 2
FOR Y  1 TO 100 // generates 100 random number between 1 and 6 for each player
NumberGenerated[X, Y] = ROUND(RANDOM() * 5, 0) + 1
NEXT Y
NEXT X

© Cambridge University Press & Assessment 2025

Page 17 of 22

Marks

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
10

October/November 2025
www.dynamicpapers.com

Answer
//comparing the random numbers
FOR X  1 to 100
IF NumberGenerated[1, X] > NumberGenerated[2, X]
THEN
Points[1]  Points[1] + 2
ELSE
IF NumberGenerated[1, X] < NumberGenerated[2, X]
THEN
Points[2]  Points[2] + 2
ENDIF
ENDIF
IF NumberGenerated[1, X] = NumberGenerated[2, X] // if tied (the same)
THEN
Points[1]  Points[1] + 1
Points[2]  Points[2] + 1
ENDIF
NEXT X

© Cambridge University Press & Assessment 2025

Page 18 of 22

Marks

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
10

Answer
// if player 1 and player 2 tie
// could be a function
IF Points[1] = Points[2]
THEN
REPEAT
P1 = ROUND(RANDOM * 6,
P2 = ROUND(RANDOM * 6,
UNTIL P1 <> P2
IF P1 > P2
THEN
Points[1]  Points[1]
ELSE
Points[2]  Points[2]
ENDIF
ENDIF

0) + 1
0) + 1

+ 2
+ 2

// determine the overall winner
IF Points[1] > Points[2]
THEN
OUTPUT "First is ", Player1
OUTPUT "With a total score of
OUTPUT "Second is ", Player2
OUTPUT "With a total score of
ELSE
OUTPUT "First is ", Player2
OUTPUT "With a total score of
OUTPUT "Second is ", Player1
OUTPUT "With a total score of
ENDIF

© Cambridge University Press & Assessment 2025

", Points[1]
", Points[2]
", Points[2]
", Points[1]

Page 19 of 22

October/November 2025
www.dynamicpapers.com
Marks

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
10

October/November 2025
www.dynamicpapers.com

Answer

Marks

Marking Instructions in italics
AO2:
Apply knowledge and understanding of the principles and concepts of computer science to a given
context, including the analysis and design of computational or programming problems
0

No creditable
response.

1–3

4–6

7–9

At least one programming
technique has been used.
Any use of selection,
iteration, counting, totalling,
input and output.

Some programming
techniques used are
appropriate to the problem.
More than one technique
seen applied to the scenario,
check the list of techniques
needed.

The range of programming
techniques used is
appropriate to the problem.
All criteria stated for the
scenario have been covered
by the use of appropriate
programming techniques,
check the list of techniques
needed.

Some data has been stored
but not appropriately.
Any use of variables or
arrays or other language
dependent data structures
e.g. Python lists.

Some of the data structures
chosen are appropriate and
store some of the data
required.
More than one data structure
used to store data required
by the scenario.

The data structures chosen
are appropriate and store all
the data required.
The data structures used
store all the data required by
the scenario.

© Cambridge University Press & Assessment 2025

Page 20 of 22

0478/23

Cambridge IGCSE – Mark Scheme
PUBLISHED

Question
10

October/November 2025
www.dynamicpapers.com

Answer

Marks

Marking Instructions in italics
AO3:
•
•
•

Provide solutions to problems by:
evaluating computer systems
making reasoned judgements
presenting conclusions
0

1–2

3–4

Program seen without
relevant comments.

Program seen with some
relevant comment(s).

The program has been
fully commented.

Some identifier names
used are appropriate.
Some of the data
structures used have
meaningful names.

The majority of identifiers
used are appropriately
named.
Most of the data structures
used have meaningful
names.

Suitable identifiers with
names meaningful to their
purpose have been used
throughout.
All of the data structures
used have meaningful
names.
The program is in a logical
order.
The solution is accurate.
Solution logically performs
all the tasks given in the
scenario. Ignore minor
syntax errors.

The solution is illogical.
No creditable
response.

5–6

The solution contains
parts that may be illogical.
The solution is inaccurate The solution contains
in many places.
parts that are inaccurate.
Solution contains few lines Solution contains lines of
of code with errors that
code with some errors that
attempt to perform a task logically perform tasks
given in the scenario.
given in the scenario.
Ignore minor syntax
errors.
The solution attempts at
The solution meets most
least one of the
of the requirements.
requirements.
Solution contains lines of
Solution contains lines of code that perform most
code that attempt at least tasks given in the
one task given in the
scenario.
scenario.

© Cambridge University Press & Assessment 2025

Page 21 of 22

The solution meets all the
requirements given in the
question.
Solution performs all the
tasks given in the
scenario.

0478/23

© Cambridge University Press & Assessment 2025

Cambridge IGCSE – Mark Scheme
PUBLISHED

Page 22 of 22

October/November 2025
www.dynamicpapers.com

Advertisement