9618/32 · October/November 2023 · Worked solutions

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

Question 1

Paper page 2 for Q1
Original paper page 2

Part 1(a) — solution

  1. conversion of −96.75 to binary e.g., positive 96.75, flip the bits + 1 to give
  2. correct mantissa
  3. correct exponent

Mark points

  • conversion of −96.75 to binary e.g., positive 96.75, flip the bits + 1 to give
  • correct mantissa
  • correct exponent

Part 1 — solution

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

Mark points

  • Include the ideas shown in the solution above.

Part 1(b) — solution

One mark per mark point (Max 3) 3 MP1 Real numbers (can) have a fractional part (such as 1/3 and ½) / (such as 0.4 and 0.25) MP2 The fixed length of the storage means that you can’t store very large / very small numbers MP3 Binary numbers represent numbers based on powers of 2, with limited fractional representations such as 1/2, 1/4, 1/8, 1/16, etc. MP4 It isn’t possible to store all fractions with the level of precision provided by this system MP5 …the fractional part of the number is as close as possible within these constraints.

Mark points

  • Include the ideas shown in the solution above.

Question 2

Paper page 3 for Q2
Original paper page 3

Part 2 — solution

One mark per mark point – composite (Max 2) 4 MP1 A (user defined) data type that is a collection of data that can consist of multiple elements MP2 …of different or the same data types MP3 …grouped under a single identifier. One mark per mark point – non-composite (Max 2) MP4 It can be defined without referencing another data type. MP5 It can be a primitive type available in a programming language, or a user- defined type.

Mark points

  • Include the ideas shown in the solution above.

Question 3

Paper page 3 for Q3
Original paper page 3

Part 3(a) — solution

One mark per mark point (Max 2) 2 MP1 A collision is when the two values / data items in the key field for two records (pass through a hashing algorithm and) result in the same hash value MP2 …so the location identified (by the hashing algorithm) may already be in use // two records cannot occupy the same address. 2023 Page 3 of 9 9618/32 Cambridge International AS & A Level – Mark Scheme October/November PUBLISHED 2023

Mark points

  • Include the ideas shown in the solution above.

Part 3(b) — solution

Answer: OR · OR

One mark per mark point (Max 3) 3 MP1 A process of collision resolution is used MP2 Start at the original hashed storage space MP3 …go through the following spaces in a linear fashion MP4 …and store the data item in the first available slot. OR MP5 Search the overflow area MP6 …go through the following spaces in a linear fashion MP7 …and store the data item in the first available slot. OR MP8 Each storage space holds a reference to a collection / chain of items MP9 …which can be searched individually. MP10 The data item is stored in the first available space in this chain.

Mark points

  • Correct result: OR
  • Correct result: OR

Question 4

Paper page 4 for Q4
Original paper page 4

Part 4 — solution

One mark for each correct word (Max 3) 3 The protocols in a stack determine the interconnectivity rules for a layered network model such as the TCP/IP model.

Mark points

  • Include the ideas shown in the solution above.

Question 5

Paper page 4 for Q5
Original paper page 4

Part 5(a) — solution

One mark per mark point (Max 2) 2 MP1 Virtual memory is used when RAM is running low MP2 …such as when a computer is running many processes at once. MP3 Virtual memory may be used for efficient use of RAM / the processor MP4 …such as if data / programs are not immediately needed, they can be moved from RAM to virtual memory

Mark points

  • Include the ideas shown in the solution above.

Part 5(b) — solution

One mark per mark point (Max 3) 3 MP1 Disk thrashing is a problem that may occur when frequent transfers between main memory and secondary memory take place // Disk thrashing is a problem that may occur when virtual memory is being used MP2 As main memory fills up, more pages need to be swapped in and out of secondary/virtual memory MP3 This swapping leads to a very high rate of hard disk head movements MP4 Eventually, more time is spent swapping the pages/data than processing the data. 2023 Page 4 of 9 9618/32 Cambridge International AS & A Level – Mark Scheme October/November PUBLISHED 2023

Mark points

  • Include the ideas shown in the solution above.

Part 5 — solution

3 2 10 10 2

Mark points

  • Include the ideas shown in the solution above.

Question 6

Paper page 5 for Q6
Original paper page 5

Part 6(a) — solution

One mark per ring (Max 4). 4

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

A B C X 1

Mark points

  • Include the ideas shown in the solution above.

Part 7(c) — solution

  1. (T =) X.Y.Z + X.Y.Z + X
  2. (T=) X.Z.(Y + Y) + X
  3. (T=) X.Z.(1) + X
  4. (T=) X.Z + X
  5. (T=) X + Z

Mark points

  • (T =) X.Y.Z + X.Y.Z + X
  • (T=) X.Z.(Y + Y) + X
  • (T=) X.Z.(1) + X
  • (T=) X.Z + X
  • (T=) X + Z

Question 8

Paper page 7 for Q8
Original paper page 7

Part 8 — solution

One mark per mark point - working (Max 3) 5 May be seen on diagram or in working section MP1 Initialisation – setting Start to 0 MP2 …and the rest of the towns to MP3 Evidence to show values at nodes being updated MP4 Evidence to show ‘visited node(s)’ MP5 Evidence to show a correct calculation of at least one route MP6 Evidence to show more than one route has been calculated for at least one town Correct Answers (Max 2) Two marks for all six correct values One mark for four or five correct values. A B C D E F

Mark points

  • Include the ideas shown in the solution above.

Part 8 — solution

12 19 14 16 10

Mark points

  • Include the ideas shown in the solution above.

Question 9

Paper page 8 for Q9
Original paper page 8

Part 9(a)(i) — solution

Two marks for all five empty boxes correct 2 One mark for any three or four empty boxes correct Identifier Data type Description BasePointer INTEGER Points to the bottom of the stack TopPointer INTEGER Points to the top of the stack Stack REAL List of decimal numbers stored in the stack 2023 Page 6 of 9 9618/32 Cambridge International AS & A Level – Mark Scheme October/November PUBLISHED 2023

Mark points

  • Include the ideas shown in the solution above.

Part 9(a)(ii) — solution

  1. CONSTANT MaxSize = 40

Mark points

  • CONSTANT MaxSize = 40

Part 9(b) — solution

One mark for linked list and one mark for array (Max 2) 2 Linked list MP1 A linked list is a dynamic data structure / not restricted in size MP2 Has greater freedom to expand or contract by adding or removing nodes as necessary MP3 Allows more efficient editing using pointers (instead of moving the data). Array MP4 An array is a static data structure1 generally fixed in size MP5 When the array is full, the stack cannot be extended any further.

Mark points

  • Include the ideas shown in the solution above.

Part 9(c) — solution

One mark per mark point (Max 1) 4 MP1 The compiler must produce object code to One mark per mark point (Max 3) MP2 …push return addresses / values of local variables onto a stack MP3 …with each recursive call // … to set up winding MP4 …pop return addresses / values of local variables off the stack … MP5 …after the base case is reached // … to implement unwinding. 2023 Page 7 of 9 9618/32 Cambridge International AS & A Level – Mark Scheme October/November PUBLISHED 2023

Mark points

  • Include the ideas shown in the solution above.

Question 10

Paper page 9 for Q10
Original paper page 9

Part 10 — solution

One mark per mark point – SIMD (Max 2) 4 MP1 Single Instruction, Multiple Data (architecture) // Performs the same operation on multiple different data streams simultaneously. MP2 The instructions can be performed sequentially, taking advantage of pipelining. MP3 Parallel computers with multiple processors. One mark per mark point – MISD (Max 2) MP4 Multiple Instruction, Single Data (architecture) // Performs different operations on the same data stream. MP5 Each processor works on the same data stream independently. MP6 Parallel computers with multiple processors.

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 for each correctly completed clause (Max 4) 4

Mark points

  • Include the ideas shown in the solution above.

Part 11(b) — solution

  1. P = toby, nina 1

Mark points

  • P = toby, nina 1

Part 11(c) — solution

  1. person(N)
  2. hobby(H)
  3. dislikes(N, H)
  4. all logical operators correct with no additional code (see example

Mark points

  • person(N)
  • hobby(H)
  • dislikes(N, H)
  • all logical operators correct with no additional code (see example

Question 12

Paper page 11 for Q12
Original paper page 11

Part 12(a) — solution

  1. Hardware failure // hard disk crash
  2. Programming error // trying to access out-of-bounds array element // divide
  3. User error // typing incorrect filename / data type

Mark points

  • Hardware failure // hard disk crash
  • Programming error // trying to access out-of-bounds array element // divide
  • User error // typing incorrect filename / data type

Part 12(b) — solution

  1. WHILE NOT FoundFlag AND Location <= MaxSize
  2. IF SearchCustomer = Customer.Name THEN

Mark points

  • WHILE NOT FoundFlag AND Location <= MaxSize
  • IF SearchCustomer = Customer.Name THEN

Question 20

Part 20 — solution

Answer: OR

20 60 60 30 30 30 30 60 OR

Mark points

  • Correct result: OR

Part 20 — solution

3 60 2 30 10 5 2 60

Mark points

  • Include the ideas shown in the solution above.

Question 30

Part 30 — solution

6(b) One mark per mark point (Max 3) 3 MP1 The (RPN) expression is read from left to right, one item at a time MP2 Each element is checked to see if it as operator or a value MP3 Values are pushed onto a stack until an operator is found MP4 The operator is applied to the last two values on the stack and the result is pushed back onto the stack MP5 This repeats until a single value remains, which is the solution.

Mark points

  • Include the ideas shown in the solution above.