9618/31 · October/November 2025 · Worked solutions

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

Question 0

Part 0 — solution

1 1 1 0 1 0 1 1 0 1 0 1 0 0 1 University Press & Assessment 2025 Page 6 of 15 9618/31 Cambridge International AS & A Level – Mark Scheme October/November 2025 Guidance

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

0 0 1 1 1 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

0 1 1 0 1 0 0

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

1 0 1 1 1 1 1

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

1 1 1 0 1 1 1

Mark points

  • Include the ideas shown in the solution above.

Question 00

Part 00 — solution

Answer: A

01 11 10 A

Mark points

  • Correct result: A

Part 00 — solution

Answer: A

01 11 10 A

Mark points

  • Correct result: A

Question 1

Paper page 2 for Q1
Original paper page 2

Part 1(a)(i) — solution

DECLARE Member1 : ClubMember 1

Mark points

  • Include the ideas shown in the solution above.

Part 1(a)(ii) — solution

One mark for each correct answer 2 Example answer Member1.Code  984632 Member1.FeesPaid  TRUE

Mark points

  • Include the ideas shown in the solution above.

Part 1(b)(i) — solution

  1. MP1 TYPE Activity=
  2. TYPE Activity = (Badminton, Football, Golf, Snooker, Swimming,

Mark points

  • MP1 TYPE Activity=
  • TYPE Activity = (Badminton, Football, Golf, Snooker, Swimming,

Part 1(b)(ii) — solution

DECLARE Choice : Activity 1 Guidance

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

0 1 1 0 0 1 1 1 1 0 1 0 1 1 1 Guidance

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

0 0 0 1 1 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

0 1 0 0 0 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

1 0 0 1 1 1 1

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

1 1 0 0 1 1 1 University Press & Assessment 2025 Page 10 of 15 9618/31 Cambridge International AS & A Level – Mark Scheme October/November 2025 Guidance

Mark points

  • Include the ideas shown in the solution above.

Question 2

Part 2(a) — solution

One mark per mark point (Max 2) 2 MP1 Correct mantissa MP2 Correct exponent Mantissa Exponent

Mark points

  • Include the ideas shown in the solution above.

Part 2(b) — solution

  1. 76.1875 = –128+32+16+2+1+0.5+0.25+0.0625

Mark points

  • 76.1875 = –128+32+16+2+1+0.5+0.25+0.0625

Question 3

Paper page 4 for Q3
Original paper page 4

Part 3(a) — solution

One mark per mark point (Max 2) 2 MP1 Protocols set a standard for communication // Protocols establish a standard set of rules for communication MP2 Protocols enable compatibility between devices from different manufacturers/platforms MP3 Two devices wouldn’t be able to communicate/send messages to each other if they were using different protocols University Press & Assessment 2025 Page 7 of 15 9618/31 Cambridge International AS & A Level – Mark Scheme October/November 2025 Guidance

Mark points

  • Include the ideas shown in the solution above.

Part 3(b) — solution

One mark for a protocol and one mark for a description (Max 4) 4 Example answers: SMTP [1] a protocol used to send emails between mail servers // a protocol used to send emails from a computer to a mail server [1] IMAP [1] allows users to access/read their emails from any device without removing the message from the mail server // synchronises emails on any device [1]

Mark points

  • Include the ideas shown in the solution above.

Part 3(c) — solution

Two marks for each description mark as 2 x 2 (Max 4) 4 Example answers: Packets checked at receiving end / on arrival [1] … if packets arrive damaged or don’t arrive at all, a re-send request is sent [1] Packets routed through different paths / sent individually [1] … if a route is blocked, the packet is sent through a different route to ensure it arrives [1] If the packet’s hop count is exceeded [1] … the packet will be retired, which can generate a re-send request [1] Guidance

Mark points

  • Include the ideas shown in the solution above.

Question 4

Part 4(a) — solution

  1. Round robin
  2. Shortest job first
  3. First come first served
  4. Shortest remaining time

Mark points

  • Round robin
  • Shortest job first
  • First come first served
  • Shortest remaining time

Part 4(b) — solution

One mark for identification and one mark for a description (Max 4) 4 Two from: Provision of a User Interface // Provision of a Graphical User Interface [1] Allows the user to interact with the computer in a more intuitive way // Icons and menus are used to control devices by simply ‘pointing and clicking’ [1] Use of device drivers [1] Makes it easier to control peripherals such as printers within the operating system of the computer rather than on the separate device itself [1] Device mapping [1] Different devices (physical and virtual) are easy to identify on the network, check their status, or use [1] The user interacts only with the Application / top layer (of the TCP/IP protocol suite) [1] leaving the lower layers and their complexities hidden from the user [1] Guidance

Mark points

  • Include the ideas shown in the solution above.

Question 5

Part 5(a) — solution

  1. Name of certificate holder // Subject
  2. Serial number
  3. Version number
  4. Expiration date // Start date // Validity (not before/not after)
  5. Certificate holder’s public key // Subject public key
  6. Subject digital signature
  7. Certificate Issuer // Digital signature of CA

Mark points

  • Name of certificate holder // Subject
  • Serial number
  • Version number
  • Expiration date // Start date // Validity (not before/not after)
  • Certificate holder’s public key // Subject public key
  • Subject digital signature
  • Certificate Issuer // Digital signature of CA

Part 5(b) — solution

One mark per mark point (Max 3) 3 MP1 A digital certificate provides a public key MP2 … which validates the private key used to create the digital signature MP3 It makes a digital signature virtually impossible to spoof // Provides evidence of signer identity that the document was not altered and the signatures are valid MP4 Non repudiation. Guidance

Mark points

  • Include the ideas shown in the solution above.

Part 5 — solution

5 5 5 90 90 90 90 10 Guidance

Mark points

  • Include the ideas shown in the solution above.

Question 6

Paper page 6 for Q6
Original paper page 6

Part 6(a) — solution

One mark for working, (all four columns P, Q, R and S) 3 One mark for first four rows of column Z One mark for second four rows of column Z Working space A B C P Q R S Z

Mark points

  • Include the ideas shown in the solution above.

Part 6(b)(i) — solution

Answer: BC

Two marks if no errors present 2 One mark if only one error present BC

Mark points

  • Correct result: BC

Part 6(b)(ii) — solution

Answer: BC

One mark for each correct loop (Max 2) 2 BC

Mark points

  • Correct result: BC

Part 6(b)(iii) — solution

  1. One correct Boolean term with a + / OR sign
  2. All Boolean terms and operators correct and no other terms present

Mark points

  • One correct Boolean term with a + / OR sign
  • All Boolean terms and operators correct and no other terms present

Part 6 — solution

6 18 15 15 9

Mark points

  • Include the ideas shown in the solution above.

Question 7

Part 7(a) — solution

  1. A* algorithm
  2. Dijkstra’s algorithm

Mark points

  • A* algorithm
  • Dijkstra’s algorithm

Part 7(b) — solution

One mark for each mark point (Max 5) 5 MP1 Deep learning is a branch of machine learning MP2 It makes use of artificial neural networks MP3 … to work in a similar manner to the human/biological brain // … neural networks can be trained to process data MP4 It is a structure consisting of many interconnected layers MP5 … input, hidden and output // the input layer feeds the first hidden layer, the last hidden layer feeds the output MP6 … gradually breaking down and analysing the data to find (hidden) patterns MP7 Deep leaning’s feature extraction/learning involves how to detect features/categories from data MP8 … and can involve different types of supervision MP9 It works well with large data sets MP10 Deep learning uses back propagation of errors to adjust parameters/weightings to refine its results / improve its accuracy. Guidance

Mark points

  • Include the ideas shown in the solution above.

Question 8

Paper page 8 for Q8
Original paper page 8

Part 8(a) — solution

One mark per mark point (Max 2) 2 MP1 To convert the high-level source code / program into a sequence of tokens MP2 … that can be sent to the parser for syntax analysis MP3 To create a symbol table MP4 To remove the unnecessary white space and comments from the code

Mark points

  • Include the ideas shown in the solution above.

Part 8(b) — solution

One mark 2 6 – 2 One mark 13 7 + * 5 / Complete answer

Mark points

  • Include the ideas shown in the solution above.

Part 8(c) — solution

One mark per ring (Max 4) 4

Mark points

  • Include the ideas shown in the solution above.

Question 9

Part 9(a)(i) — solution

  1. IF Top > –1 // Top >= Base THEN

Mark points

  • IF Top > –1 // Top >= Base THEN

Part 9(a)(ii) — solution

OUTPUT "The data removed from the stack is ", Pop() 1

Mark points

  • Include the ideas shown in the solution above.

Part 9(b) — solution

One mark per mark point (Max 3) 3 MP1 A recursive algorithm must call itself / have a general case MP2 It must have a base case / have a stopping condition MP3 It must change its state and move towards the base case Guidance

Mark points

  • Include the ideas shown in the solution above.

Question 10

Paper page 10 for Q10
Original paper page 10

Part 10 — solution

One mark per mark point (Max 2) 3 MP1 Exception handling is a process that responds to unwanted / unexpected events when a program runs MP2 … to prevent the program / computer from stopping unexpectedly One mark for example (Max 1) MP3 Programming errors MP4 User errors MP5 Hardware failure // losing connection to a device such as a printer University Press & Assessment 2025 Page 14 of 15 9618/31 Cambridge International AS & A Level – Mark Scheme October/November 2025 Guidance

Mark points

  • Include the ideas shown in the solution above.

Question 11

Part 11(a) — solution

One mark per mark point (Max 6) 6 MP1 LDM #100 seen MP2 Correct use of STO with labelled address (constant or answer) MP3 Correct use of LDD 632 MP4 Correct use of SUB with labelled address (constant) Opcode Operand LDM #100 STO Constant LDD 632 SUB Constant STO Answer MP5 Storing 100 at a labelled address away from the code MP6 Labelling both addresses away from the code. Label Contents Constant: 100 Answer:

Mark points

  • Include the ideas shown in the solution above.

Part 11(b) — solution

  1. 55 1

Mark points

  • 55 1