9618/33 · May/June 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 1 1 1 1 0 1 1 1 1 1 1 1 127  2120 // 0.9921875 x 2127 // 127/128 x 2127

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 per mark point 4 MP1 TYPE VideoLibrary and ENDTYPE correct MP2 Declare used correctly for every field in the response MP3 All Three STRING fields correct (shaded) MP4 Remaining Three fields correct (unshaded) Example answer TYPE VideoLibrary DECLARE VideoID : STRING DECLARE Title : STRING DECLARE ReleaseYear : INTEGER DECLARE PurchaseDate : DATE DECLARE VideoFormat : STRING DECLARE RunningTime : INTEGER ENDTYPE

Mark points

  • Include the ideas shown in the solution above.

Part 1(b) — solution

One mark for identification of field and one mark for reason 2 VideoFormat This field can have a fixed range of possible values University Press & Assessment 2025 Page 6 of 16 9618/33 Cambridge International AS & A Level – Mark Scheme May/June 2025

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

0 0 0 1 1 0 1 0 0 0 0 0 0 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

15 2 3 7 11 15 17 19 23 0 0

Mark points

  • Include the ideas shown in the solution above.

Question 2

Part 2(a) — solution

One mark for two’s complement version and one mark for denary version 2 Mantissa Exponent

Mark points

  • Include the ideas shown in the solution above.

Part 2(b) — solution

  1. number converted to binary e.g., positive binary version of 3.59375 = (0)11.10011
  2. negative two’s complement version -
  3. -4 + 1/4 + 1/8 + 1/32 // -4 + 025 +0.125 + 0.03125 // -(64 + 32 + 16 + 2 + 1)/32
  4. -22 + 2-2 + 2-3 + 2-5
  5. 22 (- 20 + 2-4 + 2-5 + 2-7)
  6. correct mantissa
  7. correct exponent, with working seen

Mark points

  • number converted to binary e.g., positive binary version of 3.59375 = (0)11.10011
  • negative two’s complement version -
  • -4 + 1/4 + 1/8 + 1/32 // -4 + 025 +0.125 + 0.03125 // -(64 + 32 + 16 + 2 + 1)/32
  • -22 + 2-2 + 2-3 + 2-5
  • 22 (- 20 + 2-4 + 2-5 + 2-7)
  • correct mantissa
  • correct exponent, with working seen

Question 3

Paper page 4 for Q3
Original paper page 4

Part 3(a) — solution

  1. Z = A.B.C.D + A.B.C.D + 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 + A.B.C.D + A.B.C.D

Part 3(b)(i) — solution

Answer: AB

Two marks if no errors present 2 One mark if one error present AB CD 00 01 11 10

Mark points

  • Correct result: AB

Part 3(b)(ii) — solution

Answer: AB

One mark for each correct loop (Max 2) 2 AB CD 00 01 11 10

Mark points

  • Correct result: AB

Part 3(b)(iii) — solution

  1. One correct Boolean term
  2. Boolean terms and operator correct and no other terms present

Mark points

  • One correct Boolean term
  • Boolean terms and operator correct and no other terms present

Question 4

Paper page 6 for Q4
Original paper page 6

Part 4(a) — solution

One mark per mark point (Max 5) 5 One mark per mark point for purpose of Internet Layer (Max 3) MP1 To identify the intended network and host. MP2 To add header containing IP addresses. // To address packets with their source and destination IP Addresses. MP3 To prepare packets for delivery by formatting them into datagrams. MP4 To route datagrams through the optimum route over a network. One mark per mark point for purpose of Link Layer (Max 3) MP5 To prepare the next hop by managing the link between two directly connected devices. // To identify and move traffic across local segments. MP6 To format datagrams into frames for transmission. MP7 To identify network protocols in the packet header. // To ensure correct network protocols are/is followed. MP8 To deliver frames to the receiving network. // To receive frames from the sending network. // To map IP addresses to MAC physical addresses. MP9 To provide error checking/error correction/recovery/reconstruction MP10 including resend requests.

Mark points

  • Include the ideas shown in the solution above.

Part 4(b) — solution

One mark for each correct marking point (Max 4) 4 MP1 The router reads the IP address of the destination from the packet header. MP2 A router uses a routing table to find information … MP3 … about e.g., available hops / netmask / gateway used / adjacent routers / the status of the routers along the route. MP4 The router determines the next hop / optimum route. // The router sends the packet on its next hop. MP5 The router manages the hop counter // The hop counter is reduced by 1 every time the packet passes a router. University Press & Assessment 2025 Page 9 of 16 9618/33 Cambridge International AS & A Level – Mark Scheme May/June 2025

Mark points

  • Include the ideas shown in the solution above.

Part 4 — solution

Answer: 5 17

5 17

Mark points

  • Correct result: 5 17

Question 5

Part 5 — solution

One mark per correct answer (Max 4) 4 OOP Term Purpose Getter A method that accesses the value of a property Setter A method that changes the value of a property Object An instantiation / instance of a class Method A programmed function / procedure / subroutine / subprogram defined as part of a class

Mark points

  • Include the ideas shown in the solution above.

Question 6

Part 6(a) — solution

  1. Process scheduling is required to ensure that all processes are executed in a timely manner
  2. … and enables multitasking/multiprogramming/multiprocessing
  3. … to minimise CPU idle time
  4. … to ensure that no process is starved of resources. // … to ensure fair access to resources
  5. … ensures jobs/processes are completed in order of priority

Mark points

  • Process scheduling is required to ensure that all processes are executed in a timely manner
  • … and enables multitasking/multiprogramming/multiprocessing
  • … to minimise CPU idle time
  • … to ensure that no process is starved of resources. // … to ensure fair access to resources
  • … ensures jobs/processes are completed in order of priority

Part 6(b) — solution

One mark for each mark point (Max 3) 4 MP1 Processes are queued as they arrive. MP2 It is a pre-emptive scheduling routine. MP3 A fixed time quantum is given to each process. // Each process has an equal time slice. MP4 When a time slice ends, the status of the process is saved/queued so it can continue from where it left off in its next time slice. MP5 and the next process is executed for its time slice; its previous state is reinstated/restored, if applicable. MP6 If a process completes within its time slice, the next process is executed for its time slice. One mark for benefit (Max 1) MP7 Reduces average response time by limiting each process to a fixed amount of time. MP8 No issue with starvation of resources.

Mark points

  • Include the ideas shown in the solution above.

Question 7

Paper page 8 for Q7
Original paper page 8

Part 7 — solution

One mark for each correct marking point (Max 4) 4 MP1 An SSL/TLS connection is initiated by an application/client. MP2 Every new session begins with a handshake as defined by the SSL/TLS protocols. MP3 The client requests the digital certificate from the server // The server sends the digital certificate to the client. MP4 The client verifies the server’s digital certificate MP5 … and obtains the server’s public key. MP6 The encryption algorithms are agreed. // The symmetric session keys are generated/defined. MP7 A secure session is established between client and server.

Mark points

  • Include the ideas shown in the solution above.

Question 8

Paper page 8 for Q8
Original paper page 8

Part 8 — solution

One mark per mark point (Max 4) 4 MP1 It is the second stage of compilation // It’s the compilation stage after lexical analysis. MP2 It takes input from the lexical analyser in the form of token streams. MP3 The source code is analysed / parsed against the rules of the language to detect any errors in the code. MP4 The output from this phase is a parse tree. MP5 Syntax errors are reported. University Press & Assessment 2025 Page 11 of 16 9618/33 Cambridge International AS & A Level – Mark Scheme May/June 2025

Mark points

  • Include the ideas shown in the solution above.

Question 9

Paper page 10 for Q9
Original paper page 10

Part 9(a) — solution

The second character must come from either lower or digit. It can’t be upper. 1

Mark points

  • Include the ideas shown in the solution above.

Part 9(b) — solution

  1. MP1 <upper> ::= J | K | L | V | X | Z
  2. <passcode> ::=
  3. MP4 <passcode> ::= <upper><middle><middle><digit>
  4. MP5 <middle> ::= <lower>|<digit>

Mark points

  • MP1 <upper> ::= J | K | L | V | X | Z
  • <passcode> ::=
  • MP4 <passcode> ::= <upper><middle><middle><digit>
  • MP5 <middle> ::= <lower>|<digit>

Part 9(c) — solution

One mark per mark point 2 MP1 Box for upper in correct place with correct connections MP2 Correct repetition arrow for final digit lower lower passcode upper digit digit digit upper University Press & Assessment 2025 Page 12 of 16 9618/33 Cambridge International AS & A Level – Mark Scheme May/June 2025

Mark points

  • Include the ideas shown in the solution above.

Part 9 — solution

University Press & Assessment 2025 Page 16 of 16

Mark points

  • Include the ideas shown in the solution above.

Question 10

Paper page 12 for Q10
Original paper page 12

Part 10(a) — solution

To find the path between two points on a graph using the algorithm. 1

Mark points

  • Include the ideas shown in the solution above.

Part 10(b) — solution

One mark per point (Max 2) 2 MP1 A* tries to find a better path (between two points) by using a heuristic function // A* finds the adjacent route with the shortest path and continues this until the destination is reached MP2 … Dijkstra’s just explores all possible routes. MP3 The heuristic function on the A* algorithm gives priority to nodes that are supposed to be better than others / less costly than others. MP4 Dijkstra’s algorithm cannot work with negative values/weights //A* algorithm can work with negative values/weights.

Mark points

  • Include the ideas shown in the solution above.

Part 10(c) — solution

One mark for each mark point (Max 3) 3 MP1 Unsupervised learning uses algorithms to analyse / cluster MP2 … unlabelled data sets MP3 They discover hidden patterns / data groupings / clusters without the need for human intervention. MP4 It is able to discover similarities and differences in data / information. University Press & Assessment 2025 Page 13 of 16 9618/33 Cambridge International AS & A Level – Mark Scheme May/June 2025

Mark points

  • Include the ideas shown in the solution above.

Question 11

Part 11 — solution

  1. WHILE NOT Stored AND Location <= Max
  2. IF CurrentStock = "" THEN
  3. IF Stored = FALSE THEN

Mark points

  • WHILE NOT Stored AND Location <= Max
  • IF CurrentStock = "" THEN
  • IF Stored = FALSE THEN

Question 12

Paper page 14 for Q12
Original paper page 14

Part 12(a) — solution

  1. Binary tree
  2. Graph
  3. Linked list
  4. Queue
  5. Stack

Mark points

  • Binary tree
  • Graph
  • Linked list
  • Queue
  • Stack

Part 12(b) — solution

  1. WHILE Position >= 1 AND DataArray[Position] > Value

Mark points

  • WHILE Position >= 1 AND DataArray[Position] > Value

Part 12(c) — solution

One mark for each marking point 2 MP1 The performance of a sorting routine should improve if the data is already partially sorted // The performance of a sorting routine is likely to be worse if the data is completely out of order MP2 The sort may take longer if the number of items to be sorted is larger // The sort may take less time if the number of items to be sorted is fewer. University Press & Assessment 2025 Page 15 of 16 9618/33 Cambridge International AS & A Level – Mark Scheme May/June 2025

Mark points

  • Include the ideas shown in the solution above.

Question 13

Paper page 16 for Q13
Original paper page 16

Part 13 — solution

One mark for each marking point 4 MP1 Correct Index and Target columns MP2 Correct Numbers[5] column MP3 Correct Numbers[6] and Numbers[7] columns MP4 Correct Numbers[8] column and no incorrect data added to any other of columns [1, 2, 3, 4, 9, 10] Numbers Index Target [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Mark points

  • Include the ideas shown in the solution above.