9618/32 · May/June 2025 · Worked solutions

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

Question 0

Part 0 — solution

0 0 0 1 0 0 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

0 0 1 1 0 0 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

0 1 0 0 1 0 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

0 1 1 0 1 0 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

1 0 0 1 0 0 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

1 0 1 1 0 0 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

1 1 0 0 0 0 0 1

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

1 1 1 0 0 1 0 0

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

Aa 0 0 Kk 0 Ss

Mark points

  • Include the ideas shown in the solution above.

Question 1

Paper page 2 for Q1
Original paper page 2

Part 1(a) — solution

One mark for each mark point 3 MP1 Use of correct Flight1 variable with given field names MP2 Correct assignments of four string data values MP3 Correct assignment of date data value Example answer Flight1.FlightNumber  "SB2789" Flight1.Destination  "Dublin" Flight1.FlightDate  30/07/2025 Flight1.Gate  "N03" Flight1.Airline  "Cambridge Airways"

Mark points

  • Include the ideas shown in the solution above.

Part 1(b)(i) — solution

  1. MP1 TYPE GateID =
  2. TYPE GateID = (N01, N02, N03, W01, W02, W03, W04)

Mark points

  • MP1 TYPE GateID =
  • TYPE GateID = (N01, N02, N03, W01, W02, W03, W04)

Part 1(b)(ii) — solution

DECLARE Gate : GateID 1

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

0 0 0 1 0 0 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

0 0 1 1 0 0 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

0 1 0 0 0 0 0 1

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

0 1 1 0 0 0 0 1

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

1 0 0 1 0 0 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

1 0 1 1 0 0 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

1 1 0 0 0 0 0 1

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

1 1 1 0 0 1 0 0

Mark points

  • Include the ideas shown in the solution above.

Question 2

Part 2(a) — solution

  1. number converted to binary (0)1111100.0111
  2. use of exponent = 7 // Moving binary point the correct number (7) of

Mark points

  • number converted to binary (0)1111100.0111
  • use of exponent = 7 // Moving binary point the correct number (7) of

Part 2(b) — solution

Answer: OR

  1. correct use of exponent seen
  2. correct conversion method from binary to denary
  3. 1 + 1/4 + 1/64 + 1/ 256 + 1/1024 + 1/2048 x 26 = -1493 / 32

Mark points

  • correct use of exponent seen
  • correct conversion method from binary to denary
  • 1 + 1/4 + 1/64 + 1/ 256 + 1/1024 + 1/2048 x 26 = -1493 / 32

Question 3

Paper page 4 for Q3
Original paper page 4

Part 3(a) — solution

  1. Application Layer
  2. Transport Layer
  3. Internet Layer
  4. Link Layer

Mark points

  • Application Layer
  • Transport Layer
  • Internet Layer
  • Link Layer

Part 3(b) — solution

One mark per mark point (Max 4) 4 MP1 The TCP/IP suite can be viewed as layers within a stack MP2 Each layer can only accept input from the next higher or the next lower layer/adjacent layer MP3 The user/sender/computer interfaces with the top layer/application layer to send/receive a message MP4 The message when sent passes from the top layer/application layer to the bottom layer/link layer MP5 The message when received passes from bottom layer/link layer to the top layer/application layer MP6 The link layer interfaces directly with the network and sends/receives the message. University Press & Assessment 2025 Page 5 of 12 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2025

Mark points

  • Include the ideas shown in the solution above.

Question 4

Paper page 4 for Q4
Original paper page 4

Part 4 — solution

One mark for each benefit (Max 2) 4 MP1 Suitable for long continuous transmission once the connection is made, it is available until the end of the transmission MP2 No time lost in resending/rearranging packets as no loss of packets or out of order packets MP3 Steady/high rate of transmission because the whole of the bandwidth is available MP4 Data loss unlikely as all data follows the same path One mark for each drawback (Max 2) MP5 Delays due to dedicated connection required to be set up/established before transmission can begin MP6 The dedicated connection cannot be used to transmit any other data MP7 System resources may be underutilised/inefficient/not very flexible because the bandwidth can’t be shared/high bandwidth is required // Bandwidth may be wasted // May send empty frames // the circuit is always there whether or not used MP8 There are no alternative routes if there is a failure or fault on the line MP9 Reduced security due to use of single path MP10 Scalability is difficult

Mark points

  • Include the ideas shown in the solution above.

Question 5

Part 5(a) — solution

  1. Running state
  2. Ready state
  3. Blocked state

Mark points

  • Running state
  • Ready state
  • Blocked state

Part 5(b) — solution

One mark per mark point (Max 3) 4 MP1 The processes are queued as they arrive MP2 The process with the shortest time to complete/burst time is selected first and executed MP3 The process will continue until complete or put in a waiting state once execution has begun // it is non-pre-emptive MP4 The scheduler will continue to choose shorter processes over longer processes if they continue to be added to the queue can cause starvation for longer jobs One mark for a benefit (Max 1) MP5 Shorter jobs don’t have to wait for longer jobs to complete before processing // Significantly reduces the average overall waiting time for processes // Ensures starvation doesn’t occur for process with shorter burst times MP6 Higher throughput of processes University Press & Assessment 2025 Page 6 of 12 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2025

Mark points

  • Include the ideas shown in the solution above.

Question 6

Part 6(a) — solution

One mark per point (Max 2) 2 MP1 A graph uses vertices/nodes to identify/represent entities such as destinations, people, etc MP2 Edges are used to connect nodes and can represent possible paths between them // a path is the list of nodes connected by edges between two given nodes MP3 Nodes/edges can be labelled/weighted, and this is a weighting that can be applied and used in the context of the application MP4 A cycle is a list of nodes that return to the same node.

Mark points

  • Include the ideas shown in the solution above.

Part 6(b) — solution

One mark per mark point (Max 4) 4 MP1 Supervised learning uses labelled data // Unsupervised learning makes use of unlabelled data. MP2 Labelled data means that known outcomes are applied to specific inputs to help the AI predict outcomes. MP3 Supervised learning requires initial human input/training // Unsupervised learning does not require human input/training. MP4 With unlabelled data in unsupervised learning, outcomes are not known MP5 … the AI has to search for hidden patterns/structures/clusters MP6 … within the data in order to predict outcomes. University Press & Assessment 2025 Page 7 of 12 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2025

Mark points

  • Include the ideas shown in the solution above.

Question 7

Paper page 6 for Q7
Original paper page 6

Part 7(a) — solution

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

Mark points

  • Include the ideas shown in the solution above.

Part 7(b) — solution

  1. Z = A.B.C.D + A.B.C.D + A.B.C.D + A.B.C.D

Mark points

  • Z = A.B.C.D + A.B.C.D + A.B.C.D + A.B.C.D

Part 7(c) — solution

  1. Correct application of De Morgan’s laws
  2. Correct application of Idempotent, Distributive or Absorption laws
  3. Correct application of Idempotent, Distributive or Absorption laws
  4. Correct final answer

Mark points

  • Correct application of De Morgan’s laws
  • Correct application of Idempotent, Distributive or Absorption laws
  • Correct application of Idempotent, Distributive or Absorption laws
  • Correct final answer

Question 8

Part 8 — solution

One mark per mark point (Max 4) 4 MP1 It is the first stage of compilation MP2 White space and comments are removed MP3 It takes modified source code and breaks it into a series of tokens MP4 Each token is categorised and assigned types MP5 Identifiers are stored in a symbol table MP6 If the lexical analyser finds invalid tokens, it generates an error MP7 Acceptable data from the lexical analyser passes to the syntax analyser

Mark points

  • Include the ideas shown in the solution above.

Question 9

Paper page 8 for Q9
Original paper page 8

Part 9(a) — solution

Variables must begin with a letter / not a digit 1

Mark points

  • Include the ideas shown in the solution above.

Part 9(b) — solution

  1. <operator> ::= + | - | * | / | ^ 1

Mark points

  • <operator> ::= + | - | * | / | ^ 1

Part 9(c) — solution

  1. variable = variable operator variable

Mark points

  • variable = variable operator variable

Part 9(d) — solution

Answer: AC768

Answer must begin with a valid letter. It can then be followed by any number 1 of valid digits and/or letters, as long as it is at least four characters in length. Example answer AC768

Mark points

  • Correct result: AC768

Question 10

Part 10 — solution

One mark for identifying a protocol and one mark for stating its purpose 4 MP1 Handshake protocol MP2 To establish a secure and reliable connection between two devices, systems or networks // Permits the web server and client to authenticate each other to make use of encryption algorithms MP3 Record protocol MP4 Provides a secure and reliable way to send and receive data over a network // To exchange records between the client and server // Responsible for securing application data end ensuring its integrity and authenticity during transmission // Encrypts and authenticates data exchanged between a client and a server // Deals with the format for data transmission.

Mark points

  • Include the ideas shown in the solution above.

Question 11

Paper page 10 for Q11
Original paper page 10

Part 11(a) — solution

One mark per mark point 4 MP1 Any two nodes added correctly with correct data (Aa, Mm, Ss, Xx) MP2 Remaining two nodes added with correct data (Aa, Mm, Ss, Xx) and all nodes with connecting arrows starting from correct pointer boxes MP3 Correct null pointers (0) added throughout MP4 … with no entries in other pointer boxes and all nodes correctly positioned and connected. Root pointer Pp Gg 0 Rr

Mark points

  • Include the ideas shown in the solution above.

Part 11(b) — solution

  1. Recursion is beneficial for algorithms when a problem naturally breaks
  2. … such as calculating a factorial / mathematical series / Fibonacci /

Mark points

  • Recursion is beneficial for algorithms when a problem naturally breaks
  • … such as calculating a factorial / mathematical series / Fibonacci /

Question 12

Paper page 12 for Q12
Original paper page 12

Part 12(a) — solution

One mark per mark point 5 MP1 Two correct attributes (DateOfBirth : Date) and priority with a sensible name and integer data type MP2 SetPatientID(…) and SetDoctorID(…) seen MP3 … and appropriate parameters, with string data types MP4 GetPatientID() and GetDateOfBirth() seen MP5 Priority setter and getter fully correct with name matching Priority attribute, with appropriate parameter and correct data type. Patient PatientID : STRING Name : STRING DateOfBirth : DATE Priority : INTEGER DoctorID : STRING SetPatientID(PatientNumber : STRING) SetName(FullName : STRING) SetDateOfBirth(DOB : DATE) SetPriority(Urgency : INTEGER) SetDoctorID(DocID : STRING) GetPatientID() GetName() GetDateOfBirth() GetPriority() GetDoctorID()

Mark points

  • Include the ideas shown in the solution above.

Part 12(b)(i) — solution

Instance // instantiation 1

Mark points

  • Include the ideas shown in the solution above.

Part 12(b)(ii) — solution

One mark for each mark point 2 MP1 Polymorphism is when methods with the same name are redefined / behave differently … MP2 … in derived / inherited classes / subclasses University Press & Assessment 2025 Page 11 of 12 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2025

Mark points

  • Include the ideas shown in the solution above.

Question 13

Part 13 — solution

  1. IF Grade.ExamGrade = "" THEN

Mark points

  • IF Grade.ExamGrade = "" THEN