Computer Science (9618) · May/June 2026 · Question paper · Paper 23

Cambridge International AS & A Level Computer Science question paper for Paper 23, May/June 2026 — 9618/23/M/J/26, file 9618 Computer Science June 2026 Question Paper 23.pdf.

Advertisement
Loading the paper…
Text of this paper

DFD

* 0000800000001 *

,

,

Cambridge International AS & A Level
¬OŠ> 4mHuOªEŠ^z5€W
¬Ÿ}{Q¬’„Vƒ «{D’Š‚
¥U•Uu•EU EeEE•E5UU

* 2 4 3 7 3 1 3 8 1 6 *

COMPUTER SCIENCE
Paper 2 Fundamental Problem-solving and Programming Skills

9618/23
May/June 2026
2 hours

You must answer on the question paper.
You will need:

Insert (enclosed)

INSTRUCTIONS
●
Answer all questions.
●
Use a black or dark blue pen.
●
Write your name, centre number and candidate number in the boxes at the top of the page.
●
Write your answer to each question in the space provided.
●
Do not use an erasable pen. Do not use correction fluid or tape.
●
Do not write on any bar codes.
●
You may use an HB pencil for any diagrams, graphs or rough working.
●
Calculators must not be used in this paper.

INFORMATION
●
The total mark for this paper is 75.
●
The number of marks for each question or part question is shown in brackets [ ].
●
No marks will be awarded for using brand names of software packages or hardware.
●
The insert contains all the resources referred to in the questions.

This document has 24 pages. Any blank pages are indicated.
DC (PQ/CGW) 356767/4
© Cambridge University Press & Assessment 2026

[Turn over

2
,

,

© Cambridge University Press & Assessment 2026
ĬÍĊ¾Ġ´íÈõÏĪÅĊßü·þ×
ĬğÿüÔĠĖĦÝîóĈÃõôêĂĂ
ĥąąÕµõąµµąõąÅÕåõõÕ

9618/23/M/J/26

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

BLANK PAGE

DO NOT WRITE IN THIS MARGIN

DFD

* 0000800000002 *

DFD

3
,

,

Refer to the insert for the list of pseudocode functions and operators.
1

Study the pseudocode.
1
i
REPEAT
OUTPUT i*i
i + 1
i
UNTIL i = 6
(a) Identify the type of programming construct used in the pseudocode.
[1]
(b) State how many iterations are carried out by the pseudocode.
[1]

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

* 0000800000003 *

© Cambridge University Press & Assessment 2026
ĬÏĊ¾Ġ´íÈõÏĪÅĊßú·þ×
ĬğĀûÜĪĚĖÜČþÁėýèêòĂ
ĥąõĕõĕĥÕåõåąÅµÅµĥÕ

9618/23/M/J/26

[Turn over

4
,

2

,

A control program is being developed for a robot floor vacuum cleaner. The settings for the robot
can be changed and include:

•
•

the strength of the suction (numerical values: 0, 1, 2, 3, 4 or 5)
the total vacuum cleaning time (a whole number of minutes).

The robot has a number of sensors.

DO NOT WRITE IN THIS MARGIN

DFD

* 0000800000004 *

variable

description

MainsOn

TRUE when the mains power is on

DisplayOn

TRUE when the user display is shown

Suction

TRUE when the program detects that the user has selected a non-zero value
for the strength of the suction

DO NOT WRITE IN THIS MARGIN

The control program includes the variables:

[1]
(b) Write a pseudocode statement to set the DisplayOn variable to TRUE when the mains
power is on.

DO NOT WRITE IN THIS MARGIN

(a) Identify the data type used for the three variables.

(c) When the robot is ready to move, the program assigns the value TRUE to a variable, Move
The control program contains the pseudocode logic expression:
Move

MainsOn AND Suction

Explain the pseudocode statement.

DO NOT WRITE IN THIS MARGIN

[1]

[2]

© Cambridge University Press & Assessment 2026
ĬÍĊ¾Ġ´íÈõÏĪÅĊÝü·Ā×
ĬğĀúÜĤĬēßĆąÊµáĆºĊĂ
ĥµåĕµĕĥõÅÕÕąąµĥµõÕ

9618/23/M/J/26

DO NOT WRITE IN THIS MARGIN

DFD

5
,

,

(d) The pseudocode for the control program contains the procedure CleanProgram()
PROCEDURE CleanProgram()
// declaration of variables has been omitted
FALSE
Finished
OUTPUT "Total clean time (minutes)"
INPUT TotalCleanTime
OUTPUT "Suction strength (0,1,2,3,4,5)"
INPUT SuctionStrength

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

* 0000800000005 *

WHILE
//
//
//

Finished = FALSE
TimeSoFar is a global variable which changes
as the procedure is executed
TimeSoFar is the time the robot has been cleaning (in seconds)

TimeRemaining

TotalCleanTime – INT(TimeSoFar/60)

DO NOT WRITE IN THIS MARGIN

ENDWHILE

ENDPROCEDURE
(i)

Identify this feature of the Integrated Development Environment (IDE).
[1]

DO NOT WRITE IN THIS MARGIN

(ii)

DO NOT WRITE IN THIS MARGIN

When the program is under development and running, the programmer can temporarily
stop the execution at a set point in the program.

The programmer runs the program.

•
•
•

The user is prompted and inputs the value 40 (total clean time in minutes).
The user is prompted and inputs the value 3 (for the suction strength).
The programmer interrupts its execution; the TimeSoFar is shown in a report
window as 125 (the cleaning time so far in seconds).

State the current value of TimeRemaining
[1]

© Cambridge University Press & Assessment 2026
ĬÏĊ¾Ġ´íÈõÏĪÅĊÝú·Ā×
ĬğÿùÔĦĨģÚôüÿġÙÒºúĂ
ĥµÕÕõõąĕÕåąąąÕąõĥÕ

9618/23/M/J/26

[Turn over

DO NOT WRITE IN THIS MARGIN

DFD

* 0000800000006 *

6
,

3

,

A company wishes to replace the point-of-sale software that each shop uses at its checkout. A
software company is developing a new system.
(a) Complete the summary about the development of the new system.
The initial stage is carried out by studying in
detail the current system.

Following the design and coding stages, it is decided to install the completed new software
initially in only two of the shops. testing is
carried out.
The final stage of the project uses testing to test
all programs on the company’s hardware. After successful testing, the company approves

DO NOT WRITE IN THIS MARGIN

A design for the proposed new system is produced.

The company then installs the new software in all shops. In the first week of its use,
unexpected bugs are reported. maintenance
has to be carried out.

[4]

(b) For this large project, the task was divided between two programming teams.

DO NOT WRITE IN THIS MARGIN

the new system.

Team B used a more traditional approach to the program development life cycle; the stages
in the development followed an agreed sequence.
Identify the program development life cycle model adopted by each team, and describe one
additional feature of each approach.
team A model
feature

DO NOT WRITE IN THIS MARGIN

Team A were responsible for the screen designs and all outputs; they involved the company
at the earliest possible stage and obtained feedback.

team B model
feature

[4]
© Cambridge University Press & Assessment 2026
ĬÑĊ¾Ġ´íÈõÏĪÅĊàú¶þ×
ĬğĀùÏĠĀĩÒ÷ĉöāá³ĒĊĂ
ĥĥõÕõÕąµĕÅåąÅÕåµµÕ

9618/23/M/J/26

DO NOT WRITE IN THIS MARGIN

DFD

DO NOT WRITE IN THIS MARGIN

* 0000800000007 *

7
,

,

(c) State three activities carried out during the design stage of the program development
life cycle.
1

2

3

[3]

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

© Cambridge University Press & Assessment 2026
ĬÓĊ¾Ġ´íÈõÏĪÅĊàü¶þ×
Ĭğÿú×ĪĄęçāø³ÕÙħĒúĂ
ĥĥąĕµµĥÕąµõąÅµÅõåÕ

9618/23/M/J/26

[Turn over

8
,



,

© Cambridge University Press & Assessment 2026
ĬÑĊ¾Ġ´íÈõÏĪÅĊÞú¶Ā×
Ĭğÿû×ĤòĐÔÿï¼÷õÅĂĂĂ
ĥÕÕĕõµĥõĥĕąąąµĥõµÕ

9618/23/M/J/26

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

BLANK PAGE

DO NOT WRITE IN THIS MARGIN

DFD

* 0000800000008 *

DFD

DO NOT WRITE IN THIS MARGIN

* 0000800000009 *

9
,

4



,

An algorithm is expressed as:

•
•
•
•

A user inputs a sequence of integers.
The user will input value –1 to indicate there are no more integers to be input.
The program will calculate the total number of integers greater than 120.
Output the total number of integers greater than 120 after the –1 terminator is input.

Write a structured English description for this algorithm as a sequence of steps.

DO NOT WRITE IN THIS MARGIN

Do not include pseudocode statements in your description.
Your answer might not require all six steps shown.
step 1

step 2

DO NOT WRITE IN THIS MARGIN

step 3

step 4

step 5

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

step 6

[4]

© Cambridge University Press & Assessment 2026
ĬÓĊ¾Ġ´íÈõÏĪÅĊÞü¶Ā×
ĬğĀüÏĦîĠåùĂíãýđĂòĂ
ĥÕåÕµÕąĕõĥÕąąÕąµåÕ

9618/23/M/J/26

[Turn over

Data is stored about people who have attended a job interview. Each interview is held at one of
three office locations.
Each person’s data is stored as a data packet made up of four data items:
<initial><shortened surname><office code><summary of the interview>

•
•
•
•

The initial is a single character.
The shortened surname is the first five characters of the surname.
○ You can assume all surnames are at least five characters.
The office code is a single character ‘A’, ‘B’ or ‘C’.
The interview summary text is of variable length.

Example:
Peter Watkins was interviewed at office ‘B’. After the interview it was decided to invite him for a
second interview.
His data packet is stored by variable Applicant:
Applicant

"PWatkiBSecond interview"

(a) A pseudocode function InterviewSummary() will:

•
•

take the data packet as a single parameter
return the interview summary text.

Write the pseudocode for the function InterviewSummary()

DO NOT WRITE IN THIS MARGIN

5

,

DO NOT WRITE IN THIS MARGIN

10
,

DO NOT WRITE IN THIS MARGIN

DFD

* 0000800000010 *

[4]

© Cambridge University Press & Assessment 2026
ĬÑĊ¾Ġ´íÈõÏĪÅĊßú¸þ×
ĬğþûÎĢúĊÎĈøĒě÷áºúĂ
ĥąµÕõµÅõÅåąÅąĕĥõąÕ

9618/23/M/J/26

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DFD

DO NOT WRITE IN THIS MARGIN

* 0000800000011 *

11
,

,

(b) The data for all interviews is saved in this format in a text file JobApps.txt
Each line of the file stores one data packet.
A procedure Search() is written to search for a particular applicant.
If the applicant is found, the program will output ‘Name found’, otherwise it will output ‘Name
not found’.

DO NOT WRITE IN THIS MARGIN

Complete the pseudocode for procedure Search()
PROCEDURE Search(Initial : CHAR, ShortSurname : STRING)
DECLARE ThisApplicant, ThisSurname : STRING
DECLARE ThisInitial : CHAR
DECLARE Found : BOOLEAN
OPENFILE "JobApps.txt"
FALSE
Found
REPEAT

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

"JobApps.txt", ThisApplicant
LEFT(ThisApplicant, 1)
ThisInitial
ThisSurname

IF ThisSurname = ShortSurname THEN

OUTPUT "Name found"
ENDIF
UNTIL Found = TRUE
IF Found = FALSE THEN
OUTPUT "Name not found"
ENDIF

ENDPROCEDURE

© Cambridge University Press & Assessment 2026
ĬÓĊ¾Ġ´íÈõÏĪÅĊßü¸þ×
ĬğýüÖĨöúëòĉ׿ÿõºĊĂ
ĥąÅĕµÕåĕÕÕÕÅąõąµĕÕ

9618/23/M/J/26

[7]

[Turn over

DO NOT WRITE IN THIS MARGIN

DFD

* 0000800000012 *

12
,

6

,

A linked list is an example of an Abstract Data Type (ADT).
A linked list is implemented using:

•
•
•

a 1D array for the data items
a 1D array for the link pointers
a start pointer.

The linked list maintains the data items in alphabetical order.

5

BISON

3

LEOPARD

2

DOG

ZEBRA

4

1

0

DO NOT WRITE IN THIS MARGIN

ANT

Complete the diagram to show the StartPointer and the contents of the arrays Data
and Pointer
StartPointer
Pointer

1

1

2

2

3

3

4

4

5

5

6

6

19

19

20

20

DO NOT WRITE IN THIS MARGIN

Data

[3]

© Cambridge University Press & Assessment 2026
ĬÑĊ¾Ġ´íÈõÏĪÅĊÝú¸Ā×
ĬğýùÖĞĈïÐðĂÐĝã×êòĂ
ĥµĕĕõÕåµµõåÅÅõåµąÕ

9618/23/M/J/26

DO NOT WRITE IN THIS MARGIN

start pointer:

DO NOT WRITE IN THIS MARGIN

(a) The state of the linked list after five data items have been added is:

DFD

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

* 0000800000013 *

13
,

,

(b) State what the pointer value 0 (null pointer) indicates.
[1]
(c) To maintain the linked list, algorithms are required to:

•
•

insert a new data item into the linked list
delete a data item from the linked list.

(i)

The data item ‘DOG’ is to be deleted from the linked list given in 6(a).
Complete the diagram to show the new state of the linked list.

start pointer:

ANT

BISON

LEOPARD

DOG

ZEBRA
[1]

(ii)

To delete a data item, the algorithm will have special cases. One special case is the
linked list is empty.
Describe two other special cases which must be considered when deleting a data item.

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

1

2

[2]

© Cambridge University Press & Assessment 2026
ĬÓĊ¾Ġ´íÈõÏĪÅĊÝü¸Ā×
ĬğþúÎĬČÿéĊïę¹ÛăêĂĂ
ĥµĥÕµµÅÕåąõÅÅĕÅõĕÕ

9618/23/M/J/26

[Turn over

14
,

(d) The linked list given in 6(a) is repeated here. Data item ‘BAT’ is to be added to the linked list.
start pointer:

5

ANT

BISON

3

LEOPARD

4

2

DOG

ZEBRA

1

0

Describe how the data item ‘BAT’ is added to the linked list.
Do not attempt to write pseudocode.

DO NOT WRITE IN THIS MARGIN

,

DO NOT WRITE IN THIS MARGIN

DFD

* 0000800000014 *

DO NOT WRITE IN THIS MARGIN

[6]

© Cambridge University Press & Assessment 2026
ĬÍĊ¾Ġ´íÈõÏĪÅĊÞûµĂ×
ĬğýüÏĦ÷÷ÛĀü¶ĕĂćĚĊĂ
ĥĕĥĕõÕąõÅĕõąąÕĥµÅÕ

9618/23/M/J/26

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DFD

15
,

7

,

Study the pseudocode algorithm. Numbers will be copied into the Data array.
// STAGE 1
12
Num1
1
Index
2 TO Num1 DIV 2
FOR i
IF Num1 MOD i = 0 THEN
i
Data[Index]
Index + 1
Index
ENDIF
NEXT i
Index - 1
Index
OUTPUT Index, " values were found"
(a) (i)

Complete the trace table for STAGE 1
Data
Num1

Index

i

1

2

3

4

5

6

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

* 0000800000015 *

[4]
(ii)

State how the numbers in the Data array are related.
[1]

© Cambridge University Press & Assessment 2026
ĬÏĊ¾Ġ´íÈõÏĪÅĊÞùµĂ×
Ĭğþû×ĤûćÞúąóÁúÓĚúĂ
ĥĕĕÕµµĥĕÕĥåąąµąõÕÕ

9618/23/M/J/26

[Turn over

DO NOT WRITE IN THIS MARGIN

DFD

* 0000800000016 *

16
,

,

(b) The complete algorithm has a second stage.
// STAGE 2
Num2
Match

8

FALSE

DO NOT WRITE IN THIS MARGIN

REPEAT
IF Num2 MOD Data[Index] = 0 THEN
TRUE
Match
ELSE
Index - 1
Index
ENDIF
UNTIL Match = TRUE OR Index = 0
IF Match = TRUE THEN
OUTPUT Data[Index]
ELSE
OUTPUT "Nothing found"
ENDIF

20

The programmer creates a final program with the STAGE 1 code followed immediately by
the STAGE 2 code.
The STAGE 1 trace table shows the relevant final variable values after the completion
of STAGE 1

Num1

Num2

Index

20

Data
Match

4

This is followed by running of the STAGE 2 code.

© Cambridge University Press & Assessment 2026
ĬÍĊ¾Ġ´íÈõÏĪÅĊàûµĄ×
Ĭğþú×ĪĉĂÙøþüģÖñĊĂĂ
ĥåÅÕõµĥµµÅÕąÅµåõÅÕ

9618/23/M/J/26

1

2

3

4

2

4

5

10

5

6
DO NOT WRITE IN THIS MARGIN

STAGE 1

DO NOT WRITE IN THIS MARGIN

Num1

DO NOT WRITE IN THIS MARGIN

One line of the STAGE 1 code is changed:

DFD

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

* 0000800000017 *

17
,

(i)

,

Complete the trace table for STAGE 2
STAGE 2
Num1

Num2

Index

20

Data
Match

4

1

2

3

4

2

4

5

10

5

6

[3]
(ii)

State the purpose of the STAGE 2 algorithm.

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

[1]

© Cambridge University Press & Assessment 2026
ĬÏĊ¾Ġ´íÈõÏĪÅĊàùµĄ×
ĬğýùÏĠąòàĂó­·ÞåĊòĂ
ĥåµĕµÕąÕåµąąÅÕŵÕÕ

9618/23/M/J/26

[Turn over

18
,

,

A warehouse stores stock in bins. A bin is a container which stores the stock items; each bin can
store many identical items. The warehouse is organised on three different levels – level 0 (ground
level), then level 1 and level 2. Each level has 120 bins, numbered 1 to 120.
A bin is identified by the level and a bin number. The data item stored for each bin is a Boolean
value; this indicates whether the bin is in use (contains stock items) or not in use (contains no
stock items).
(a) (i)

Complete the pseudocode to declare a 2D array Bins
DECLARE
[2]

(ii)

A pseudocode module InactiveReport() will produce a report that will show:

•
•
•

a header for each level
the bin number for each bin that is not in use on that level
the total number of bins that are not in use on all levels.

The module is initially developed for only five bins on each level.

DO NOT WRITE IN THIS MARGIN

8



DO NOT WRITE IN THIS MARGIN

DFD

* 0000800000018 *

Level: ground floor
Bin 1
Bin 3
Level: 1
Bin 4
Level: 2
Bin 1
Bin 2
Bin 5

Shows:
• the header for each level
• a list of bin numbers for bins that are
not in use on that level
• the total number of bins not in use.

DO NOT WRITE IN THIS MARGIN

An example program output:

© Cambridge University Press & Assessment 2026
ĬÍĊ¾Ġ´íÈõÏĪÅĊÝû·Ă×
ĬğÿúÎĬāĘ×ïąÒÿØĕ²úĂ
ĥõåĕõµÅµĕõÕÅÅĕåõõÕ

9618/23/M/J/26

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

6 bins are not in use

DFD

DO NOT WRITE IN THIS MARGIN

* 0000800000019 *

19
,



,

Complete the pseudocode for the procedure InactiveReport()
Assume that the Bins array is a global variable and has already been populated
with data.
PROCEDURE InactiveReport()

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

ENDPROCEDURE

[5]

© Cambridge University Press & Assessment 2026
ĬÏĊ¾Ġ´íÈõÏĪÅĊÝù·Ă×
ĬğĀùÖĞýĨâĉüėÛàÁ²ĊĂ
ĥõÕÕµÕåÕąąąÅÅõŵĥÕ

9618/23/M/J/26

[Turn over

Test data were chosen to produce this output:

Level: ground floor
Bin 1
Bin 3
Level: 1
Bin 4
Level: 2
Bin 1
Bin 2
Bin 5
6 bins are not in use

Complete the pseudocode test data which would produce the output given.
Reminder: The module is initially developed for only five bins on each level.
// Ground floor
FALSE
Bins[0, 1]
TRUE
Bins[0, 2]
Bins[0, 3]
Bins[0, 4]
Bins[0, 5]

TRUE
TRUE

// Level 1
Bins[1, 1]

TRUE

Bins[1,
Bins[1,
Bins[1,
Bins[1,

TRUE
FALSE
TRUE

2]
3]
4]
5]

DO NOT WRITE IN THIS MARGIN

(iii)

,

DO NOT WRITE IN THIS MARGIN

20
,

DO NOT WRITE IN THIS MARGIN

DFD

* 0000800000020 *

[3]

© Cambridge University Press & Assessment 2026
ĬÍĊ¾Ġ´íÈõÏĪÅĊßû·Ą×
ĬğĀüÖĨïġÕćóĐùĄģâòĂ
ĥÅąÕõÕåõĥåõÅąõĥµõÕ

9618/23/M/J/26

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

// Level 2

DFD

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

* 0000800000021 *

21
,

,

(b) It is decided to change the 2D array Bins so that more information is available about
each bin.
Data items for each bin are:

•
•
•
•

bin size (coded as ‘Small’, ‘Medium’ or ‘Large’)
active – is the bin currently in use?
stock item code for the stock item stored (four-digit string)
stock level (0 to 500 items).

(i)

Complete the pseudocode to create a record structure with the identifier BinData
TYPE BinData

ENDTYPE

[2]

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

© Cambridge University Press & Assessment 2026
ĬÏĊ¾Ġ´íÈõÏĪÅĊßù·Ą×
ĬğÿûÎĢóđäñþÙÝü·âĂĂ
ĥÅõĕµµÅĕõÕåÅąĕąõĥÕ

9618/23/M/J/26

[Turn over

(ii)

,

A stock item is to be allocated to an unused bin. A function FindBin() is required
that finds and returns the location of the first bin not in use which has a suitable size.
The function will search on the ground floor first, then search level 1 and finally search
level 2.
The function uses the global 2D array Bins using the revised record structure BinData
The function FindBin():

•
•
•

takes a parameter for the bin size required (coded as ‘Small’, ‘Medium’ or ‘Large’)
searches for an available bin that matches the size required
outputs the level and bin number (as a string) of the first unused bin with the
matching size
○ for example, ‘Level: 0 Bin: 4’
○ or if there are no available bins ‘No bins available’.

Write the pseudocode function FindBin()

DO NOT WRITE IN THIS MARGIN

22
,

DO NOT WRITE IN THIS MARGIN

DFD

* 0000800000022 *

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

© Cambridge University Press & Assessment 2026
ĬÑĊ¾Ġ´íÈõÏĪÅĊÞù¶Ă×
ĬğĀûÑĬěěìöïä½ĄÖĊòĂ
ĥĕÕĕµĕŵµµąÅÅĕåµµÕ

9618/23/M/J/26

DO NOT WRITE IN THIS MARGIN

DFD

DO NOT WRITE IN THIS MARGIN

* 0000800000023 *

23
,

,

[7]

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

© Cambridge University Press & Assessment 2026
ĬÓĊ¾Ġ´íÈõÏĪÅĊÞû¶Ă×
ĬğÿüÙĞėīÍĄĂĥęüĂĊĂĂ
ĥĕåÕõõåÕåÅÕÅÅõÅõåÕ

9618/23/M/J/26

24
,

,

Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
reasonable effort has been made by the publisher (Cambridge University Press & Assessment) to trace copyright holders, but if any items requiring clearance
have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in our Copyright
Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cambridgeinternational.org after the live
examination series.
Cambridge International Education is the name of our awarding body and a part of Cambridge University Press & Assessment, which is a department of the
University of Cambridge.

© Cambridge University Press & Assessment 2026
ĬÑĊ¾Ġ´íÈõÏĪÅĊàù¶Ą×
ĬğÿùÙĨĥĞêþĉĞ»ØäĚúĂ
ĥåõÕµõåõÅĥåÅąõĥõµÕ

9618/23/M/J/26

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

DO NOT WRITE IN THIS MARGIN

BLANK PAGE

DO NOT WRITE IN THIS MARGIN

DFD

* 0000800000024 *

Advertisement