Computer Science (9618) · May/June 2026 · Mark scheme · Paper 23
Cambridge International AS & A Level Computer Science mark scheme for Paper 23, May/June 2026 — 9618/23/M/J/26, file 9618 Computer Science June 2026 Mark Scheme 23.pdf.
Text of this paper
Cambridge International AS & A Level
COMPUTER SCIENCE
9618/23
Paper 2 Fundamental Problem-solving and Programming Skills
May/June 2026
MARK SCHEME
Maximum Mark: 75
Published
This mark scheme contains the instructions and marking guidance that our examiners used to mark
candidate responses for this component.
Before they start marking, examiners complete a standardisation process. They review a range of candidate
responses and discuss the mark scheme in detail to agree which answers can and cannot be accepted.
Examiners award marks where it is clear that candidate responses have met the requirements of the mark
scheme. These requirements may vary between different components or different versions of the same
component, depending on the exact requirements of the question and the candidate responses seen during
the standardisation process.
Sometimes, our mark schemes may allow marks to be awarded to responses which contain elements that
are factually incorrect or for content not covered by the syllabus. We do this in response to the demands of a
specific question to support candidates and make sure that our assessments are fair. However, these
allowances should not be used as a guide for teaching and learning.
We cannot discuss the mark scheme with schools, and we recommend that schools read the mark scheme
together with the assessment material and the Principal Examiner Report for Teachers.
This document consists of 15 printed pages.
© Cambridge University Press & Assessment 2026
[Turn over
9618/23
Cambridge International AS & A Level – Mark Scheme
PUBLISHED
May/June 2026
General marking principles
All examiners must apply these marking principles when marking candidate responses.
1
Examiners must award marks for each response in line with:
•
•
•
the specific content defined in the mark scheme
the specific skills defined in the mark scheme or in the level descriptions
the standard of response required as exemplified by the standardisation scripts.
2
Examiners must award whole marks (not half marks, or other fractions).
3
Examiners must award marks positively. This means that:
•
•
•
marks are not deducted for errors or omissions
marks are awarded for correct/valid answers as defined in the mark scheme and also for
other valid answers which go beyond the scope of the syllabus and mark scheme
referring to your team leader as appropriate
the quality of spelling, punctuation and grammar are judged only when the mark scheme
indicates that these features are specifically assessed in the question. However, the
meaning of all responses must be unambiguous.
4
Examiners must consistently apply the requirements of the mark scheme and any rules for
what to do when candidates have not followed instructions correctly.
5
Examiners must use the full range of marks defined in the mark scheme, unless limited by
the quality of the candidate responses seen.
6
Examiners must award marks according to the mark scheme and must not award marks with
grade thresholds or grade descriptions in mind.
© Cambridge University Press & Assessment 2026
Page 2 of 15
9618/23
Cambridge International AS & A Level – Mark Scheme
PUBLISHED
May/June 2026
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 standardisation 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
Benefit of the doubt
To indicate where a key word/phrase/code is missing
Incorrect
Follow through
Indicate a point in an answer
Highlighted text
To draw attention to a particular aspect or to indicate where parts of an answer
have been combined
Ignore
Not answered question
No examples or not enough
Not relevant or used to separate parts of an answer
Off-page
comment
Allows comments to be entered at the bottom of the RM marking window and
then displayed when the associated question item is navigated to.
Repetition
Indicates that work or a page has been seen including blank answer spaces
and blank pages.
Correct
© Cambridge University Press & Assessment 2026
Page 3 of 15
9618/23
Annotation
Cambridge International AS & A Level – Mark Scheme
PUBLISHED
Meaning
Too vague
© Cambridge University Press & Assessment 2026
Page 4 of 15
May/June 2026
9618/23
Cambridge International AS & A Level – Mark Scheme
PUBLISHED
May/June 2026
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 2026
Page 5 of 15
9618/23
Cambridge International AS & A Level – Mark Scheme
PUBLISHED
Question
Answer
May/June 2026
Marks
1(a)
Post-condition(al) loop // post-condition(al) iteration
1
1(b)
5
1
Question
Answer
Guidance
Marks
2(a)
BOOLEAN
1
2(b)
IF MainsOn (=TRUE) THEN
1
DisplayOn TRUE
ENDIF
Accept:
DisplayOn MainsOn
Accept ‘=’ in place of the assignment arrow
2(c)
MP1
MP2
The robot is only ready to move if… the mains power is on and …..
The strength of the (suction) value selected is non-zero
2
2(d)(i)
breakpoint
1
2(d)(ii)
38 (minutes)
1
Question
3(a)
Answer
The initial ANALYSIS stage is carried out by studying in detail the current
system.
A design for the proposed new system is produced.
Following the design and coding stages, it is decided to install the completed
new software initially in only two of the shops. BETA testing is carried out.
The final stage of the project uses ACCEPTANCE testing to test all
programs on the company's hardware. After successful testing, the
company approves the new system.
The company then installs the new software in all shops. In the first week of
its use, unexpected bugs are reported. CORRECTIVE maintenance has to
be carried out.
© Cambridge University Press & Assessment 2026
Page 6 of 15
Marks
4
Reject –
Zero for a
‘repeat’ of
the
pseudocode
statement.
9618/23
Cambridge International AS & A Level – Mark Scheme
PUBLISHED
Question
3(b)
Answer
Team A
MP1
Rapid Application Development /RAD // Iterative
MP2
MP3
MP4
MP5
MP6
MP7
MP8
MP9
Max 2
May/June 2026
Marks
Guidance
4
Large project can be broken down into smaller steps
All stakeholders/users are involved (at all stages)
There is constant discussion between the client (and Team A)
Prioritises the client needs and end-user experience
A prototype is available at an early stage
More readily allows for requirement changes to be made
Minimal planning is required
Programs/modules can be developed in parallel
Reject ‘early
version’.
Team B
MP10 Waterfall (method/model)
MP11 Next stage does not start until the current stage is successfully
completed
MP12
MP13
MP14
MP15
More predictable for budget
More predictable for timeline/completion
All requirements are identified before coding
Late changes cannot be accommodated
Max 2
3(c)
MP1
MP2
MP3
MP4
MP5
MP6
MP7
Production of flowcharts // structure charts // STDs // Structured
English // E-R diagrams
Consider data storage (hardware / database / files)
Design inputs screens // Design screen outputs // reports to be
produced
Select (Programming) language to be used
Produce pseudocode algorithms / data structures /
procedures/functions/modules are produced / Identifier table
Produce a testing strategy statement // (detailed) test plan
Consider – is there relevant code available from program
libraries?
Max 3
© Cambridge University Press & Assessment 2026
Page 7 of 15
3
Reject
‘program
structure’.
9618/23
Cambridge International AS & A Level – Mark Scheme
PUBLISHED
Question
4
Answer
Example solution:
•
•
•
•
•
•
May/June 2026
Marks
4
Initialise count to zero
REPEAT
Input next number
If number > 120 then increment the count
Until number = -1
Output the count
A ‘sum’
solution will
have a Max
2.
Mark as follows:
MP1
Initialise count and later evidence of use of counter (not ‘sum’)
5(a)
Guidance
MP2
Conditional loop and terminated when –1 is input
MP3
Test for number > 120 and increment the count (not ‘sum’)
inside the loop
MP4
Output the count (Accept either ‘sum’ or ‘count’)
FUNCTION InterviewSummary(ThisApplicant : STRING)
RETURNS STRING
DECLARE Summary : STRING
4
Summary MID(ThisApplicant, 8,
MP2
LENGTH(ThisApplicant)- 7)
MP3
Or:
Summary RIGHT(ThisApplicant, LENGTH(ThisApplicant) – 7)
MP2
MP3
RETURN Summary
ENDFUNCTION
Mark as follows:
MP1
Function identifier and function ending and parameter
MP2
MP3
MP4
Calculation for summary expression (part 1) – using MID or RIGHT
Calculation for summary expression (part 2) – using LENGTH
Return of the calculated STRING value (earlier declaration optional)
and RETURNS STRING in the header –
© Cambridge University Press & Assessment 2026
Page 8 of 15
Do not
accept a
final
missing
close
bracket (for
the MID or
RIGHT
function).
9618/23
Cambridge International AS & A Level – Mark Scheme
PUBLISHED
Question
5(b)
Answer
PROCEDURE Search(Initial : CHAR, ShortSurname : STRING)
DECLARE ThisApplicant, ThisSurname : STRING
DECLARE ThisInitial : CHAR
DECLARE Found : BOOLEAN
OPENFILE "JobApps.txt" (FOR) READ
Found FALSE
REPEAT
READFILE "JobApps.txt", ThisApplicant
ThisInitial LEFT(ThisApplicant, 1)
ThisSurname MID(ThisApplicant, 2, 5)
IF ThisSurname = ShortSurname
AND ThisInitial = Initial THEN
Found TRUE
OUTPUT "Name found"
ENDIF
UNTIL Found = TRUE OR EOF("JobApps.txt")
IF Found = FALSE THEN
OUTPUT "Name not Found"
ENDIF
CLOSE(FILE) "JobApps.txt"
ENDPROCEDURE
Mark as follows:
1 mark per gap
© Cambridge University Press & Assessment 2026
Page 9 of 15
May/June 2026
Marks
7
Guidance
9618/23
Cambridge International AS & A Level – Mark Scheme
PUBLISHED
Question
6(a)
Answer
MP1
MP2
MP3
6(b)
May/June 2026
Marks
5
3
1
Data
"LEOPARD"
1
Pointer
4
2
"DOG"
2
1
3
"BISON"
3
2
4
"ZEBRA"
4
0
5
"ANT"
5
3
6
6
3
19
20
20
Correct Data array values
Correct pointers
The end of ‘(linked) list’
1
6(c)(i)
1
Mark as follows:
Start is 5
and other pointer values are correct
and BISON pointer is changed to 1
and arrows are as shown
and DOG is ‘isolated’
6(c)(ii)
MP1
MP2
MP3
The item is not in the list
The data item is the only item in the list
The item is the first in the list
© Cambridge University Press & Assessment 2026
Page 10 of 15
2
Guidance
9618/23
Cambridge International AS & A Level – Mark Scheme
PUBLISHED
Question
6(d)
May/June 2026
Answer
Marks
MP1
Store ‘BAT’ at the next available location /with index 6 / in the Data
array
MP2
MP3
MP4
MP5
MP6
MP7
Visit the start pointer node
Compare this data value with ‘BAT’ //compare ‘BAT’ with ‘ANT’
When ‘BAT’ is less than the current value - ‘position is found’
IF not, move to next node // move to ‘BISON’
….. and store the previous position
Repeat until ‘BAT’ less that current value
MP8
MP9
Link pointer of the previous node // ’ANT’ points/connects to ‘BAT’
Link pointer of ‘BAT’ points to the current node / 3 // ’BAT’
points/connects to ‘BISON’
Guidance
6
Max 6
Question
Answer
Marks
7(a)(i)
4
Data
Num1
12
Index
1
i
2
2
3
3
4
4
5
5
6
1
2
3
4
5
6
2
3
4
6
4
Mark by column(s)
7(a)(ii)
Factors / the divisors of Num1/12 // all the numbers which divide exactly into
Num1
© Cambridge University Press & Assessment 2026
Page 11 of 15
1
Guidance
9618/23
Cambridge International AS & A Level – Mark Scheme
PUBLISHED
Question
Answer
May/June 2026
Marks
7(b)(i)
Guidance
3
Num
1
Num2
20
8
Index
Match
1
2
3
4
4
FALSE
2
4
5
10
3
FALSE
2
TRUE
5
6
Max 2 for any additional incorrect entries
7(b)(ii)
Highest common factor // Greatest common divisor of Num1 and Num2
// by good explanation i.e. 4 is the highest number that divides exactly
into both 8 and 20
Question
8(a)(i)
Answer
Marks
DECLARE Bins : ARRAY [0:2, 1:120] OF BOOLEAN
MP1
© Cambridge University Press & Assessment 2026
MP2
Page 12 of 15
1
Guidance
2 Do not
accept
variations of
syntax.
9618/23
Cambridge International AS & A Level – Mark Scheme
PUBLISHED
Question
8(a)(ii)
Answer
Example solution:
Mark as follows:
MP1
Bin count declared and initialised before the loop and correctly
incremented
MP2
(Outer) level loop – iterates 3 times
MP3
(Inner) bin loop – iterates 5 times
MP4
Correct 2D array syntax and test for not in use with a Boolean
comparison
MP5
Correct header OUTPUT statement(s) - includes the ‘Ground floor‘
text
and ‘Bin’ text and bin number
Correct final OUTPUT statement with ‘total not in use’ text and the
count
Max 5
© Cambridge University Press & Assessment 2026
Marks
5
PROCEDURE InactiveReport()
DECLARE Level, BinNo : INTEGER
DECLARE BinCount : INTEGER
BinCount 0
FOR Level 0 TO 2
IF Level = 0 THEN
OUTPUT "Level: ground floor"
ELSE
OUTPUT "Level: " & NUM_TO_STR(Level)
ENDIF
FOR BinNo 1 TO 5
IF Bins[Level, BinNo] = FALSE THEN
OUTPUT "Bin " & NUM_TO_STR(BinNo)
BinCount BinCount + 1
ENDIF
NEXT BinNo
NEXT Level
OUTPUT NUM_TO_STR(BinCount) & " bins are not in use"
ENDPROCEDURE
MP6
May/June 2026
Page 13 of 15
Guidance
9618/23
Cambridge International AS & A Level – Mark Scheme
PUBLISHED
Question
8(a)(iii)
Answer
Bins[0, 3] FALSE
May/June 2026
Marks
3
Bins[1, 2] TRUE
Bins[2,
Bins[2,
Bins[2,
Bins[2,
Bins[2,
1]
2]
3]
4]
5]
FALSE
FALSE
TRUE
TRUE
FALSE
Mark as follows:
8(b)(i)
MP1
MP2
Bins(0, 3) FALSE
Bins(1, 2) TRUE
MP3
Level 2 assignment all complete
Example solution:
2
TYPE BinData
DECLARE
DECLARE
DECLARE
DECLARE
Size
Active
StockCode
StockLevel
:
:
:
:
STRING
BOOLEAN
STRING
INTEGER
ENDTYPE
Mark as follows:
Two variables correct – 1 Mark
4 variables correct
– 2 marks
© Cambridge University Press & Assessment 2026
Page 14 of 15
Guidance
9618/23
Cambridge International AS & A Level – Mark Scheme
PUBLISHED
Question
8(b)(ii)
Answer
Example solution:
May/June 2026
Marks
Guidance
7
FUNCTION FindBin(MySize : STRING) RETURNS STRING
DECLARE Level, BinNo : INTEGER
DECLARE Text : STRING
Text " No bins available"
Level 0
REPEAT
BinNo 1
REPEAT
IF Bins[Level, BinNo].Size = MySize
AND Bins[Level, BinNo].Active = FALSE THEN
Text "Level: " & NUM_TO_STR(Level)
& " Bin: " & NUM_TO_STR(BinNo)
OUTPUT Text
RETURN Text
ELSE
BinNo BinNo + 1
ENDIF
UNTIL BinNo = 121
Level Level + 1
UNTIL Level = 3
OUTPUT Text
RETURN Text
ENDFUNCTION
Mark as follows:
MP1
Function header and string parameter and return string and ending
MP2
MP3
Use of any (outer level) loop for 3 iterations
Use of any (inner) bin loop for 5 / 120 iterations
MP4
MP5
Correct 2D array syntax with either data field – .Size or .Active
Correct IF statement condition including AND
MP6
Formation of the text string with correct syntax –
MP7
Correct return value (and output) – in both cases and in the correct
place
© Cambridge University Press & Assessment 2026
Page 15 of 15
Do not
accept
comma
syntax.