9618/31 · May/June 2026 · Worked solutions

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

Question 0

Part 0 — solution

0 0 1 1 1 0 0

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

0 1 1 1 0 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

1 0 1 0 1 0 0

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

1 1 1 0 1 1 0

Mark points

  • Include the ideas shown in the solution above.

Question 1

Part 1(a) — solution

One mark per correct data type (Max 2) 2 Do not allow record. set class / object

Mark points

  • Include the ideas shown in the solution above.

Part 1(b)(i) — solution

A user-defined data type that is used to reference a memory location 1 Do not allow point/pointer as the purpose.

Mark points

  • Include the ideas shown in the solution above.

Part 1(b)(ii) — solution

  1. MP2 = ^STRING
  2. TYPE Word = ^STRING

Mark points

  • MP2 = ^STRING
  • TYPE Word = ^STRING

Part 1 — solution

0 1 0 1 0 0 1 1 0 0 0 0 1 0 0 University Press & Assessment 2026 Page 6 of 16 Trace ID: PC-6711E7F15B 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/31 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/31 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/31 Cambridge International AS & A Level – Mark Scheme May/June 2026 Guidance

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

0 0 0 1 1 1 1

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

0 1 0 1 1 0 0

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

1 0 0 0 1 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

1 1 0 0 1 0 0

Mark points

  • Include the ideas shown in the solution above.

Question 2

Part 2(a) — solution

One mark for an appropriate use of random file organisation (Max 1) 1 Do not allow DBMS. Booking systems e.g. airline Do not allow definitions of random file Operating system file management systems organisation. Video games Encryption utilities Compression utilities

Mark points

  • Include the ideas shown in the solution above.

Part 2(b) — solution

One mark per mark point (Max 2) 2 Do not allow use of data/file instead of MP1 Records are stored in no particular order / any available position record MP2 A record key is used to determine the location where the record is to be stored Do not accept random as the MP3 … which is generated using a hash function on the key field description. MP4 New records are added in an empty location University Press & Assessment 2026 Page 5 of 16 Trace ID: PC-6711E7F15B 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/31 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/31 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/31 Cambridge International AS & A Level – Mark Scheme May/June 2026 Guidance

Mark points

  • Include the ideas shown in the solution above.

Part 2(c) — solution

One mark per mark point (Max 3) 3 Do not allow use of data/file instead of MP1 Direct file access is used record MP2 A hashing function is used on the key field to find the location in the file where the record is stored Allow open or closed hashing / MP3 If the required record is found at the hashed location it is retrieved addressing for MP4. MP4 If the required record is not found, a collision resolution strategy is employed // Records from that point are searched linearly until the required record is found // Linear probing Guidance

Mark points

  • Include the ideas shown in the solution above.

Question 3

Part 3(a) — solution

  1. 10.8125 converted to binary positive binary version of 10.8125 = 01010.1101 //

Mark points

  • 10.8125 converted to binary positive binary version of 10.8125 = 01010.1101 //

Part 3(b) — solution

  1. correct application of exponent seen
  2. correct method to find the final answer

Mark points

  • correct application of exponent seen
  • correct method to find the final answer

Question 4

Part 4 — solution

One mark for each correct line connecting a TCP/IP layer to its description 4 (Max 4). TCP/IP layer description ensures packets arrive in sequence without errors Application provides remote access to files on a host server to access and manage files stored in a remote location Transport interconnects nodes or hosts in a network, encapsulates IP packets into frames and ensures correct protocols are followed Internet identifies the intended network and host. Link contains all the programs that exchange data and includes protocols: HTTP, FTP and POP3 University Press & Assessment 2026 Page 8 of 16 Trace ID: PC-6711E7F15B 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/31 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/31 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/31 Cambridge International AS & A Level – Mark Scheme May/June 2026 Guidance

Mark points

  • Include the ideas shown in the solution above.

Question 5

Part 5 — solution

One mark for each correct benefit (Max 2) 4 MP2 do not allow the mark for ‘virtual MP1 Virtual machines can provide an instruction set architecture that is machines can be cheaper’, ‘cost saving’ different to the actual computer. // Multiple operating system by itself, or similar. The answer must environments can be used on the same computer. // You can run an match the phrase in the mark scheme. application / legacy software which is not compatible with the host computer / operating system using a guest operating system that is compatible with the application / software. MP2 Costs can be saved by not having to purchase additional hardware to test / use applications. MP3 The guest operating system can crash without affecting the host machine. // Guest operating system hosted on a virtual machine can be used without impacting anything outside the virtual machine. // When trying a piece of suspicious software, if it causes a problem, it will only infect the virtual machine. One mark for each correct limitation (Max 2) MP4 Degraded performance. // A virtual machine is less efficient than real machines because they access hardware indirectly. // The virtual machine has to request access to the hardware from the host, which slows usability. // If multiple virtual machines are running on the same host, performance may be negatively affected if the host lacks sufficient power to deal with all their requirements. MP5 A virtual machine is dependent on the features / standard of the host machine. // It may be affected by the weaknesses of the host machine // MP6 do not allow for just saying ‘virtual Not all hardware/software can be emulated. machine can be expensive’. It has to MP6 Managing and maintaining a virtual machine can be quite complex have a reason e.g. expensive to /specialised. maintain. University Press & Assessment 2026 Page 9 of 16 Trace ID: PC-6711E7F15B 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/31 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/31 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/31 Cambridge International AS & A Level – Mark Scheme May/June 2026 Guidance

Mark points

  • Include the ideas shown in the solution above.

Question 6

Part 6(a) — solution

  1. One mark for columns P, Q and R 3
  2. One mark for column S
  3. One mark for column Z

Mark points

  • One mark for columns P, Q and R 3
  • One mark for column S
  • One mark for column Z

Part 6(b) — solution

One mark per mark point (Max 1) 1 Makes it easier by itself is not enough. Solving logic expressions using a K-map makes it easier because you don’t Do not allow optimal sum-of-products need to use Boolean algebra. // It is guaranteed to give you an optimal solution. instead of optimal solution. // Converts complex logic problems into simpler ones. University Press & Assessment 2026 Page 10 of 16 Trace ID: PC-6711E7F15B 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/31 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/31 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/31 Cambridge International AS & A Level – Mark Scheme May/June 2026 Guidance

Mark points

  • Include the ideas shown in the solution above.

Part 6(c)(i) — solution

Answer: AB

One mark for each correct loop (Max 3) 3 Max 2 if incorrect loops seen. AB CD 00 01 11 10

Mark points

  • Correct result: AB

Part 6(c)(ii) — solution

One mark per mark point (Max 2) 2 Terms can be in any order. MP1 One correct Boolean term with an OR (+) sign MP2 All three correct Boolean terms connected by OR signs and no other terms present. A.B + B.D + C.D University Press & Assessment 2026 Page 11 of 16 Trace ID: PC-6711E7F15B 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/31 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/31 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/31 Cambridge International AS & A Level – Mark Scheme May/June 2026 Guidance

Mark points

  • Include the ideas shown in the solution above.

Question 7

Part 7(a) — solution

One mark per mark point (Max 2) 2 MP1 21 15 3 – MP2 8 + * 7 / Final correct expression

Mark points

  • Include the ideas shown in the solution above.

Part 7(b) — solution

One mark per mark point (Max 3) 3 MP1 (c + d) MP2 (a - b) * (a - c) MP3 /( MP2 ) Final correct expression (c + d) / ((a - b) * (a - c))

Mark points

  • Include the ideas shown in the solution above.

Part 7(c) — solution

One mark per ring (Max 3) 4 Do not allow operators in stacks One mark for the interim total (48) and the final total (2). Values in shaded areas are necessary to award the marks in the rings.

Mark points

  • Include the ideas shown in the solution above.

Question 8

Part 8(a)(i) — solution

Text encrypted from plain text using an encryption algorithm // The result of 1 putting plain text through an encryption algorithm.

Mark points

  • Include the ideas shown in the solution above.

Part 8(a)(ii) — solution

A cryptographic/encryption key that can be obtained/used by anyone to send 1 encrypted messages. // A key that is part of a matched pair // An encryption key known to all users // A decryption key obtained/used by anyone to decrypt sender’s digital signature

Mark points

  • Include the ideas shown in the solution above.

Part 8(b) — solution

One mark per mark point (Max 4) 4 The correct sequence of steps that is MP1 The organisation generates a matched pair of encryption keys important. MP2 The organisation makes its public key available to the individual MP3 The individual uses the public key to encrypt their message MP4 … and sends this message to the organisation MP5 The organisation decrypts the message using their private key Alternative answer One mark per mark point (Max 4) MP6 The individual generates a matched pair of encryption keys MP7 The individual sends their public key to the organisation MP8 The individual uses their private key to encrypt their message MP9 … and sends this message to the organisation MP10 The organisation decrypts the message using the individual’s public key University Press & Assessment 2026 Page 13 of 16 Trace ID: PC-6711E7F15B 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/31 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/31 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/31 Cambridge International AS & A Level – Mark Scheme May/June 2026 Guidance

Mark points

  • Include the ideas shown in the solution above.

Part 8 — solution

13 6 14 17 20 a node via different routes. University Press & Assessment 2026 Page 14 of 16 Trace ID: PC-6711E7F15B 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/31 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/31 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/31 Cambridge International AS & A Level – Mark Scheme May/June 2026 Guidance

Mark points

  • Include the ideas shown in the solution above.

Question 9

Part 9 — solution

24 24 8 18 18 24

Mark points

  • Include the ideas shown in the solution above.

Part 9(a) — solution

One mark per mark point (Max 4) 4 MP1 Supervised learning makes use of labelled training data MP2 … to predict future events based on past outcomes MP3 Unsupervised learning makes use of unlabelled training data / training data without instructions on what to do with it / does not use training data with the correct/expected outcomes MP4 … to search for hidden patterns/relationships/structures/similarities/ outliers within the data MP5 … to therefore get closer to the desired outcome as the training progresses.

Mark points

  • Include the ideas shown in the solution above.

Part 9(b) — solution

One mark per mark point - working (Max 3) 5 MP1 a 0 on the Begin node in the May be seen on diagram or in working section diagram or clearly labelled in working MP2 requires an  symbol on EVERY MP1 Initialisation – setting Begin to 0 node except Begin in the diagram or MP2 … and the rest of the nodes to  clearly labelled in working MP3 Evidence to show values at nodes being updated MP3 evidence of correct numbers being MP4 Evidence to show ‘visited node(s)’ written on the diagram at the nodes to MP5 Evidence to show a correct calculation of at least one route represent ‘distance’ for a particular route MP6 Evidence to show more than one route has been calculated for at least MP4 any evidence of nodes being one node ‘visited’ in a route on the diagram OR listing of nodes by letter in the working Correct Answers (Max 2) MP5 numbers on the diagram or in Two marks for all six correct values working that show a route being One mark for four or five correct values. calculated from the component distances between nodes MP6 numbers on the diagram or in P Q R S T U working to show distances calculated to

Mark points

  • Include the ideas shown in the solution above.

Question 10

Part 10(a) — solution

  1. WHILE Insert >= 0 AND MemberID[Insert] > Temp1

Mark points

  • WHILE Insert >= 0 AND MemberID[Insert] > Temp1

Part 10(b) — solution

One mark per mark point (Max 3) 3 MP1 Array size // Number of elements in the array Allow the opposite for MP2 MP2 … time efficiency will improve if the number of elements to be sorted (worse/more). are fewer MP3 Initial order Allow the opposite for MP4 MP4 … if the array is partially sorted the insertion sort works better (reversed/slower).

Mark points

  • Include the ideas shown in the solution above.

Part 10(c) — solution

O(n2) // O(N2) 1 Must be completely correct (including brackets). University Press & Assessment 2026 Page 15 of 16 Trace ID: PC-6711E7F15B 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/31 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/31 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/31 Cambridge International AS & A Level – Mark Scheme May/June 2026 Guidance

Mark points

  • Include the ideas shown in the solution above.

Question 11

Part 11(a) — solution

One mark for each correctly completed clause (Max 3) 3 Accept facts in any order. The device names have been given in (25) customer(betty). clauses 02 and 04. Responses must (26) owns(large_tv, betty). match these. (27) wants(bluray_player, betty).

Mark points

  • Include the ideas shown in the solution above.

Part 11(b) — solution

  1. (Owner =) petrov, susan, sammy 1 Can be in any order

Mark points

  • (Owner =) petrov, susan, sammy 1 Can be in any order

Part 11(c) — solution

One mark per mark point (Max 4) 4 Allow MP1, MP2 and MP3 in any order. MP1 device(D) MP2 customer(A) MP3 owns(D, A). Accept \+ for NOT operator as Swish MP4 All logic conditions / punctuation correct (accept , for AND) Prolog. Example answers may_buy_device(D, A) IF device(D) AND customer(A) AND NOT owns(D, A). may_buy_device(D, A) IF device(D), customer(A), NOT owns(D, A). University Press & Assessment 2026 Page 16 of 16 Trace ID: PC-6711E7F15B 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/31 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/31 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/

Mark points

  • Include the ideas shown in the solution above.

Question 15

Part 15 — solution

15 6 6 6 6 48 48 48 48 2 University Press & Assessment 2026 Page 12 of 16 Trace ID: PC-6711E7F15B 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/31 Mark Scheme June · papacambridge.com 2026 | Source: papacambridge.com 9618/31 Mark Scheme June 2026 Downloaded from PapaCambridge - https://papacambridge.com/ 9618/31 Cambridge International AS & A Level – Mark Scheme May/June 2026 Guidance

Mark points

  • Include the ideas shown in the solution above.