Computer Science (0478) · Oct/Nov 2025 · Mark scheme 21
Cambridge Computer Science (0478) mark scheme for paper 21, Oct/Nov 2025 — 0478/21/O/N/25, file 0478_w25_ms_21.pdf.
Text of this paper
www.dynamicpapers.com
Cambridge IGCSE™
COMPUTER SCIENCE
0478/21
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/21
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/21
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/21
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/21
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/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
October/November 2025
www.dynamicpapers.com
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 6 of 22
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
1
October/November 2025
www.dynamicpapers.com
Answer
Marks
One mark for each correct line
4
Description
SQL keyword
identifies the database table
ORDER BY
sets the condition
COUNT
WHERE
sorts the results
SUM
returns the number of records
FROM
Question
2
Answer
One mark for each correct answer, Max 3
•
•
•
•
3
normal
abnormal
extreme
boundary
Question
3
Marks
Answer
B
© Cambridge University Press & Assessment 2025
Marks
1
Page 7 of 22
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
4(a)
Answer
One mark per bullet point
•
•
•
•
•
October/November 2025
www.dynamicpapers.com
Marks
5
input of adult and child number
calculation of total without discount
check if total people are 6 or more
… apply discount to total
output of the total
Example:
OUTPUT "Please enter the number of adults "
INPUT Adult
OUTPUT "Please enter the number of children "
INPUT Child
Total (Adult * 9.99) + (Child * 6.99)
IF (Adult + Child) >= 6
THEN
Total Total – (Total * 15/100)
ENDIF
OUTPUT "The total cost is ", Total
4(b)
One mark per bullet point
•
•
2
Correct use of ROUND
… to 2 decimal places
Example
Total ROUND(Total, 2)
© Cambridge University Press & Assessment 2025
Page 8 of 22
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
4(c)(i)
Answer
Marks
One mark per bullet point
•
•
October/November 2025
www.dynamicpapers.com
2
( NOT A OR B)
AND C
(X =) (NOT A OR B) AND C
4(c)(ii)
3
A
B
X
C
One mark per correct gate
© Cambridge University Press & Assessment 2025
Page 9 of 22
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
4(d)
Answer
•
•
B
X
0
0
1
0
1
1
1
0
1
1
1
0
© Cambridge University Press & Assessment 2025
Marks
2
One mark for correct symbol
One mark for correctly completed table
A
October/November 2025
www.dynamicpapers.com
Page 10 of 22
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
5
October/November 2025
www.dynamicpapers.com
Answer
•
•
•
•
One
One
One
One
mark for
mark for
mark for
mark for
Marks
a suitable hierarchical structure
suitable names for the sub systems for user input and display options
sub systems for user inputs, room type and number of nights
sub systems for display output types, pictures and list
Hotel booking system
Input
Room type
Number of nights
© Cambridge University Press & Assessment 2025
Output
Pictures
List
Page 11 of 22
4
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
6(a)
Answer
One mark for each line identified and the correction:
Line 03 –
Line 05 –
Line 08 –
Line 15 –
6(b)
DECLARE CheckDigit : INTEGER
FOR Count 1 TO 5
Total Total + (Digit * Count)
OUTPUT "The check digit is ", CheckDigit
3
After the for loop but before the total/after line 07
use a suitable loop (repeat/while)
… checking digit is 0 to 9
re-input digit in the loop
One mark for identification and one mark for correct description for each:
•
•
•
•
Marks
4
One mark per bullet point, Max 3
•
•
•
•
6(c)
should be
should be
should be
should be
October/November 2025
www.dynamicpapers.com
visual check
… look at the data that has been entered and confirm it matches
double entry
… enter data twice and only accept identical values
© Cambridge University Press & Assessment 2025
Page 12 of 22
2
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
7(a)
Answer
One mark per column across both tables:
Number
Value
0
20
0
1
20
2
40
3
60
4
80
5
100
6
120
5
© Cambridge University Press & Assessment 2025
Marks
4
Input data: 20
Count
October/November 2025
www.dynamicpapers.com
Output
5
Page 13 of 22
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
7(a)
Answer
Count
Number
Value
0
110
0
Output
110
0
0
One mark from:
•
•
•
7(c)
Marks
Input data: 110
1
7(b)
October/November 2025
www.dynamicpapers.com
1
DIV algorithm
Integer division
to find how many times the number goes into 100
Integer
© Cambridge University Press & Assessment 2025
1
Page 14 of 22
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
7(d)
Answer
One mark per point:
declare Count
use of while/repeat
… with correct condition
output of correct count
Examples:
DECLARE Count : INTEGER
Count 0
INPUT Number
Value Count * Number
WHILE Value <= 100 DO
Count Count + 1
Value Count * Number
ENDWHILE
Count Count – 1
OUTPUT Count
Or
DECLARE Count : INTEGER
(Count 0)
INPUT Number
Count DIV(100, Number)
OUTPUT Count
© Cambridge University Press & Assessment 2025
Marks
4
Either
• declare Count
• initialise Count
• use of DIV
• … with correct parameters
Or
•
•
•
•
October/November 2025
www.dynamicpapers.com
Page 15 of 22
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
8(a)
Answer
One mark from:
•
•
October/November 2025
www.dynamicpapers.com
Marks
1
parent name can be repeated
not unique
8(b)
StudentID
1
8(c)
Two marks for 3 correct data types or one mark for 1 or 2 correct data types
2
Field
8(d)
Data type
ParentName
Text
Permission
Boolean/text
DateReceived
Date/time/text
One mark if two correct, Two marks if all three correct
SELECT StudentName
FROM SchoolTrip
WHERE Permission = False;
© Cambridge University Press & Assessment 2025
Page 16 of 22
2
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
9
October/November 2025
www.dynamicpapers.com
Answer
One mark per bullet point
• correctly opening Attendance.txt for read
• use of READFILE
• … and storing in StudentAttendance
• closing Attendance.txt
Marks
4
Example
OPENFILE Attendance.txt FOR READ
READFILE Attendance.txt, StudentAttendance
CLOSEFILE Attendance.txt
Question
10(a)
Answer
One mark for both declarations correct
Marks
1
DECLARE Seconds : INTEGER
DECLARE Minutes : INTEGER
10(b)
One mark per bullet point
•
•
•
•
4
PROCEDURE and ENDPROCEDURE naming the procedure Time with parameter
correctly calculating minutes
correctly calculating seconds
output the minutes and seconds
Example
PROCEDURE Time(TotalSeconds : INTEGER)
Minutes DIV(TotalSeconds, 60)
Seconds MOD(TotalSeconds, 60)
OUTPUT "The number of minutes is ", Minutes
OUTPUT "The number of seconds is ", Seconds
ENDPROCEDURE
© Cambridge University Press & Assessment 2025
Page 17 of 22
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
11
October/November 2025
www.dynamicpapers.com
Answer
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:
CompetitorName, CompetitorScore
Requirements (techniques)
R1 inputs the score for each round validating the input is in the range 0 to 30 inclusive (input, output, nested iteration,
validation)
R2 calculates the score of each competitor discarding the highest and lowest scores of the 10 rounds (nested iteration,
output and selection)
R3 outputs the name of the competitor and whether they have qualified, are a reserve or not qualified, output the number of
competitors who have qualified, are reserve and not qualified (totalling, output and selection)
© Cambridge University Press & Assessment 2025
Page 18 of 22
Marks
15
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
11
October/November 2025
www.dynamicpapers.com
Answer
Example 15-mark answer in pseudocode.
// programming techniques of iteration, selection, counting, totalling and output are used
// Candidates did not need to declare any arrays or variables.
DECLARE Score : INTEGER
DECLARE Highest : INTEGER
DECLARE Lowest : INTEGER
DECLARE Qualified : INTEGER
DECLARE Reserve : INTEGER
DECLARE NotQualified : INTEGER
Qualified 0
Reserve 0
NotQualified 0
FOR X 1 TO 30 //looping for number of competitors
FOR Round 1 TO 10 //looping for number of rounds
OUTPUT CompetitorName[X]
OUTPUT "Enter the score for the round: ", Round
INPUT Score
// validation of input for between 0 and 30 inclusive
WHILE Score < 0 OR Score > 30 DO
OUTPUT "The score must be between 0 and 30 inclusive. Please try again ."
INPUT Score
ENDWHILE
CompetitorScore[X, Round] Score // adding score to 2-D array
NEXT Round
NEXT X
// or suitable method of determining how many competitors
FOR X 1 TO 30
Count 0
Highest 0
Score 0
Lowest 999 // resetting variables for each competitor
© Cambridge University Press & Assessment 2025
Page 19 of 22
Marks
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
11
October/November 2025
www.dynamicpapers.com
Answer
FOR Y 1 TO 10 // loop through rounds
Score Score + CompetitorScore[X, Y]
IF CompetitorScore[X, Y] > Highest // finds highest score
THEN
Highest CompetitorScore[X, Y]
ENDIF
IF CompetitorScore[X, Y] < Lowest // finds lowest score
THEN
Lowest CompetitorScore[X, Y]
ENDIF
NEXT Y
Score Score – Highest – Lowest // calculating score to subtract highest and lowest
IF Score >= 210 // competitor has qualified
THEN
OUTPUT "Competitor ", CompetitorName[X], " has qualified"
Qualified Qualified + 1
ELSE
IF Score >= 180 AND Score <= 209 // competitor is a reserve competitor
THEN
OUTPUT "Competitor ", CompetitorName[X], " are a reserve"
Reserve Reserve + 1
ELSE
OUTPUT "Competitor ", CompetitorName[X], " has not qualified" // competitor not
qualified
NotQualified NOTQualified + 1
ENDIF
NEXT X
OUTPUT "The number of competitors qualified is ", Qualified
// output of results
OUTPUT "The number of competitors who are a reserve is ", Reserve
OUTPUT "The number of competitors not qualified is ", NotQualified
© Cambridge University Press & Assessment 2025
Page 20 of 22
Marks
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
11
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 21 of 22
0478/21
Cambridge IGCSE – Mark Scheme
PUBLISHED
Question
11
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
No
creditable
response.
1–2
3–4
5–6
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 solution is illogical.
The solution contains parts that
may be illogical.
The program is in a logical order.
The solution is inaccurate in
many places.
Solution contains few lines of
code with errors that attempt to
perform a task given in the
scenario.
The solution contains parts that
are inaccurate.
Solution contains lines of code
with some errors that logically
perform tasks given in the
scenario. Ignore minor syntax
errors.
The solution is accurate.
Solution logically performs all the
tasks given in the scenario. Ignore
minor syntax errors.
The solution attempts at least
one of the requirements.
Solution contains lines of code
that attempt at least one task
given in the scenario.
The solution meets most of the
requirements.
Solution contains lines of code
that attempts most tasks given in
the scenario.
The solution meets all the
requirements given in the
question.
Solution performs all the tasks
given in the scenario.
© Cambridge University Press & Assessment 2025
Page 22 of 22