9618/21 · May/June 2026 · Worked solutions

Step-by-step solutions based on the mark scheme (not a mark-scheme dump).

Question 1

Part 1(a) — solution

Count-control(led) loop // Count-control(led) iteration 1

Mark points

  • Include the ideas shown in the solution above.

Part 1(b) — solution

Answer: 4 1

4 1

Mark points

  • Correct result: 4 1

Question 2

Part 2(a)(i) — solution

BOOLEAN 1

Mark points

  • Include the ideas shown in the solution above.

Part 2(a)(ii) — solution

  1. MainsOn (= TRUE) AND WaterOn (= TRUE) 1

Mark points

  • MainsOn (= TRUE) AND WaterOn (= TRUE) 1

Part 2(a)(iii) — solution

Answer: OR:

IF 3 MainsOn AND (Tray1 OR Tray2) THEN MP1 MP2 WashStart  TRUE MP3 ENDIF OR: MP2 WashStart  MainsOn AND (Tray1 OR Tray2) MP1 MP3

Mark points

  • Correct result: OR:

Part 2(b)(i) — solution

Report window // Watch window 1

Mark points

  • Include the ideas shown in the solution above.

Part 2(b)(ii) — solution

Answer: 103 1

103 1

Mark points

  • Correct result: 103 1

Question 3

Part 3(a) — solution

MP1 Investigate the current system /any example 3 // investigate any other similar systems MP2 Discussion/interviews with managers MP3 Discussion/interviews with staff who operate the system MP4 Carry out a survey of employees/customers // carry out a focus group of employees/customers MP5 Observe the current system in use MP6 Produce the requirements specification MP7 Decide on the (program development) life cycle to be used Max 3 University Press & Assessment 2026 Page 6 of 14 Trace ID: PC-8DDFDAF021 Re-uploading, mirroring or re-hosting this file on any other website or domain is unauthorised and traceable. Licensed for hosting on papacambridge.com only. PapaCambridge 9618/21 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/21 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/21 Cambridge International AS & A Level – Mark Scheme May/June 2026

Mark points

  • Include the ideas shown in the solution above.

Part 3(b) — solution

Before any programming is started, the DESIGN stage for the proposed new 6 system must be completed. For this large project, the tasks will be broken down into several MODULES // SUB-TASKS each will be coded by a different programming team. Once each team has completed its work, INTEGRATION // UNIT testing must be carried out. Before the new system is delivered to the business, ALPHA testing is carried out in-house. It is decided to install the software initially in only one of the call centres where BETA testing is carried out. The new software is finally rolled out to all five call centres. In the first week of its use, staff report that the software still requires extra features which were not originally agreed. The software is withdrawn until ADAPTIVE maintenance is completed.

Mark points

  • Include the ideas shown in the solution above.

Question 4

Part 4 — solution

Example solution: 4 Initialise Count to zero REPEAT INPUT integer number IF integer number > 0 then increment the count UNTIL integer number equals 0 OUTPUT Count Mark as follows: MP1 Initialise Count to zero and later evidence of use of counter MP2 Conditional loop and terminated when 0 is input MP3 Test for number > 0 and increment count inside the loop MP4 Output the count (either ‘sum’ or ‘count’) Max 4 University Press & Assessment 2026 Page 7 of 14 Trace ID: PC-8DDFDAF021 Re-uploading, mirroring or re-hosting this file on any other website or domain is unauthorised and traceable. Licensed for hosting on papacambridge.com only. PapaCambridge 9618/21 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/21 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/21 Cambridge International AS & A Level – Mark Scheme May/June 2026

Mark points

  • Include the ideas shown in the solution above.

Question 5

Part 5(a) — solution

Example solution: 4 FUNCTION BulbCost(Quantity : INTEGER) RETURNS REAL DECLARE Cost : REAL DECLARE Twenty : INTEGER DECLARE Other : INTEGER Twenty  Quantity DIV 20 Other  Quantity MOD 20 Cost  (Twenty * 30) + (Other * 1.75) RETURN Cost ENDFUNCTION Mark as follows: MP1 Function header and single parameter and returns REAL and end MP2 Declaration of required local variable(s) MP3 Correct calculation of ‘multiples of 20’ and ‘other’ amounts using MOD and DIV // alternative method MP4 Cost is returned

Mark points

  • Include the ideas shown in the solution above.

Part 5(b) — solution

TotalCost  BulbCost(NumberPurchased) 1

Mark points

  • Include the ideas shown in the solution above.

Part 5 — solution

Answer: 6 · 44424344

6 44424344

Mark points

  • Correct result: 6
  • Correct result: 44424344

Question 6

Part 6(a) — solution

MP1 LEFT(DataPacket, 3) // MID(DataPacket, 1, 3) 2 MP2 MID(DataPacket, 5, 1) University Press & Assessment 2026 Page 8 of 14 Trace ID: PC-8DDFDAF021 Re-uploading, mirroring or re-hosting this file on any other website or domain is unauthorised and traceable. Licensed for hosting on papacambridge.com only. PapaCambridge 9618/21 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/21 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/21 Cambridge International AS & A Level – Mark Scheme May/June 2026

Mark points

  • Include the ideas shown in the solution above.

Part 6(b) — solution

Answer: OR:

Example solution: 4 FUNCTION RejectDescription(ThisReject : STRING) RETURNS STRING DECLARE Description : STRING Description  MID(ThisReject, 7, Part 1 LENGTH(ThisReject) - 6) Part 2 OR: Description  RIGHT(ThisReject, LENGTH(ThisReject) - 6) Part 1 Part 2 RETURN Description ENDFUNCTION Mark as follows: MP1 Function header and end function (and string parameter) MP2 Calculation for description expression (part 1) using MID/RIGHT MP3 Calculation for description expression (part 2) using the LENGTH function MP4 Return of a calculated value and RETURN STRING in the header University Press & Assessment 2026 Page 9 of 14 Trace ID: PC-8DDFDAF021 Re-uploading, mirroring or re-hosting this file on any other website or domain is unauthorised and traceable. Licensed for hosting on papacambridge.com only. PapaCambridge 9618/21 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/21 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/21 Cambridge International AS & A Level – Mark Scheme May/June 2026

Mark points

  • Correct result: OR:

Part 6(c) — solution

  1. (ThisMachine = 'B' OR ThisMachine = 'C') THEN
  2. (ThisMachine = ‘B‘ OR ThisMachine = ‘C‘)

Mark points

  • (ThisMachine = 'B' OR ThisMachine = 'C') THEN
  • (ThisMachine = ‘B‘ OR ThisMachine = ‘C‘)

Question 7

Part 7(a)(i) — solution

Printer queue on a computer network // modelling/simulation of a real-world 1 problem using a queue //accept anything reasonable

Mark points

  • Include the ideas shown in the solution above.

Part 7(a)(ii) — solution

The queue operates on the principle the first item to join the queue will be the 2 next item to leave MP1 First in – first out ‘feel’ MP2 Must refer to their application stated in part (i)

Mark points

  • Include the ideas shown in the solution above.

Part 7(b)(i) — solution

MP1 DECLARE MyQueue : ARRAY [1:8] OF STRING 2 MP2 DECLARE Front : INTEGER DECLARE Rear : INTEGER University Press & Assessment 2026 Page 10 of 14 Trace ID: PC-8DDFDAF021 Re-uploading, mirroring or re-hosting this file on any other website or domain is unauthorised and traceable. Licensed for hosting on papacambridge.com only. PapaCambridge 9618/21 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/21 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/21 Cambridge International AS & A Level – Mark Scheme May/June 2026

Mark points

  • Include the ideas shown in the solution above.

Part 7(b)(ii) — solution

Queue 2

Mark points

  • Include the ideas shown in the solution above.

Part 7 — solution

Answer: 8

8 Mark as follows: MP1 Correct sequence of five values in locations 2–6 MP2 Front points to DOG in location 2 and Rear points to CAT in location 6

Mark points

  • Correct result: 8

Part 7(b)(iii) — solution

MyQueue 2

Mark points

  • Include the ideas shown in the solution above.

Part 7(c) — solution

Example solution: 3 PROCEDURE InitialiseQueue() DECLARE i : INTEGER Front  0 /….7/8 Rear  0 / … 7/8 FOR i  1 TO 8 MyQueue[i]  "" NEXT i ENDPROCEDURE Mark as follows: MP1 Front and Rear are each assigned a value in range MP2 Correct FOR-NEXT loop // other loop structure MP3 MyQueue[i] assigned an empty string in a loop

Mark points

  • Include the ideas shown in the solution above.

Question 8

Part 8 — solution

"GERBIL" Mark as follows: MP1 MONKEY and SNAKE in locations 1, 2 with correct Rear pointer MP2 GIRAFFE in 5 with Front pointer and TIGER, ANT, GERBIL in locations 6, 7 and 8 University Press & Assessment 2026 Page 11 of 14 Trace ID: PC-8DDFDAF021 Re-uploading, mirroring or re-hosting this file on any other website or domain is unauthorised and traceable. Licensed for hosting on papacambridge.com only. PapaCambridge 9618/21 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/21 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/21 Cambridge International AS & A Level – Mark Scheme May/June 2026

Mark points

  • Include the ideas shown in the solution above.

Part 8(a) — solution

LeftPointer RightPointer MidPointer 4

Mark points

  • Include the ideas shown in the solution above.

Part 8(b) — solution

Found 6 1

Mark points

  • Include the ideas shown in the solution above.

Part 8(c) — solution

Answer: 6 1

6 1

Mark points

  • Correct result: 6 1

Question 9

Part 9(a) — solution

DECLARE Version1 : ARRAY [0:2, 1:15] OF CHAR 2 MP1 MP2 University Press & Assessment 2026 Page 12 of 14 Trace ID: PC-8DDFDAF021 Re-uploading, mirroring or re-hosting this file on any other website or domain is unauthorised and traceable. Licensed for hosting on papacambridge.com only. PapaCambridge 9618/21 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/21 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/21 Cambridge International AS & A Level – Mark Scheme May/June 2026

Mark points

  • Include the ideas shown in the solution above.

Part 9(b) — solution

  1. IF Version1[FloorNumber, RoomNumber] = ‘ A‘ THEN

Mark points

  • IF Version1[FloorNumber, RoomNumber] = ‘ A‘ THEN

Part 9(c)(i) — solution

Example solution: 3 TYPE RoomData (DECLARE Available : CHAR) DECLARE RoomType : CHAR DECLARE View : BOOLEAN DECLARE Grade : STRING ENDTYPE Mark as follows: MP1 and MP2 Two variables correct 1 mark Three variables correct 2 marks MP3 ENDTYPE University Press & Assessment 2026 Page 13 of 14 Trace ID: PC-8DDFDAF021 Re-uploading, mirroring or re-hosting this file on any other website or domain is unauthorised and traceable. Licensed for hosting on papacambridge.com only. PapaCambridge 9618/21 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/21 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/21 Cambridge International AS & A Level – Mark Scheme May/June 2026

Mark points

  • Include the ideas shown in the solution above.

Part 9(c)(ii) — solution

Answer: AND Version2[Floor, Room].View = BoolView · AND Version2[Floor, Room].RoomGrade = · AND Version2[Floor, Room].Available = 'A’THEN

  1. IF TO_UPPER(InputView) = "TRUE" THEN
  2. IF Version2[Floor, Room].RoomType = MyRoomType
  3. AND Version2[Floor, Room].View = BoolView
  4. AND Version2[Floor, Room].RoomGrade =
  5. AND Version2[Floor, Room].Available = 'A’THEN

Mark points

  • IF TO_UPPER(InputView) = "TRUE" THEN
  • IF Version2[Floor, Room].RoomType = MyRoomType
  • AND Version2[Floor, Room].View = BoolView
  • AND Version2[Floor, Room].RoomGrade =
  • AND Version2[Floor, Room].Available = 'A’THEN