9618/33 · October/November 2023 · Worked solutions

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

Question 0

Part 0 — solution

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

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

  1. conversion of 65.25 to binary seen e.g. 1000001.01 = 65.25 //

Mark points

  • conversion of 65.25 to binary seen e.g. 1000001.01 = 65.25 //

Part 1(b) — solution

One mark per mark point (Max 2) 2 MP1 the decimal fraction 0.20 cannot be represented exactly (the closest is 0.25 / 0.1875) MP2 therefore, there will be a loss of precision due to a rounding error/truncation

Mark points

  • Include the ideas shown in the solution above.

Question 2

Paper page 3 for Q2
Original paper page 3

Part 2(a) — solution

One mark for each correct line connecting a protocol to its most appropriate 4 description (Max 4). Protocol Use to provide peer-to-peer file sharing HTTP when retrieving email messages from a mail server over a TCP/IP connection BitTorrent when transmitting hypertext documents SMTP to map MAC addresses onto IP addresses IMAP when sending email messages towards the intended destination

Mark points

  • Include the ideas shown in the solution above.

Part 2(b) — solution

One mark per mark point (Max 2) 2 MP1 To ensure correct network protocols are followed MP2 To enable the upper layers to access the physical medium // enables connection/ communication with the internet / network layer MP3 To be responsible for transporting data within the network/local segments MP4 To format the data into frames for transmission MP5 Maps IP addresses to MAC/Physical addresses. 2023 Page 3 of 9 9618/33 Cambridge International AS & A Level – Mark Scheme October/November PUBLISHED 2023

Mark points

  • Include the ideas shown in the solution above.

Question 3

Paper page 3 for Q3
Original paper page 3

Part 3 — solution

One mark per mark point – enumerated type (Max 2) 4 MP1 A user-defined non-composite (data type) (only award once) MP2 …with a list of all possible values MP3 …that is ordered. One mark per mark point – pointer type (Max 2) MP4 A user-defined non-composite (data type) (only award once) MP5 …that stores addresses/memory locations only MP6 …and indicates the type of data stored in the memory location.

Mark points

  • Include the ideas shown in the solution above.

Part 3 — solution

9(b) One mark per mark point (Max 3) 3 MP1 Evaluate the RPN expression from left to right MP2 Push each element of the RPN expression onto the stack in order until an operator is reached MP3 Pop the last two elements from the stack and apply the operator MP4 Push the result of the operation onto the stack MP5 Repeat the process until the whole expression is evaluated. 2023 Page 7 of 9 9618/33 Cambridge International AS & A Level – Mark Scheme October/November PUBLISHED 2023

Mark points

  • Include the ideas shown in the solution above.

Question 4

Paper page 4 for Q4
Original paper page 4

Part 4(a) — solution

One mark per mark point – sequential (Max 2) 4 MP1 Records (in the file) are ordered MP2 …based on the key field MP3 A new version (of the file) has to be created to update the file One mark per mark point – random (Max 2) MP4 Records are stored in no particular order within the file // There is no sequencing in the placement of the records MP5 There is a relationship between the key of the record and its location within the file // a hashing algorithm is used to find the location of the record MP6 Updates to the file can be carried out directly.

Mark points

  • Include the ideas shown in the solution above.

Part 4(b) — solution

One mark per mark point (Max 2) 2 MP1 Start at the beginning of the file MP2 …check records linearly MP3 …until the desired record is found // … processing / updating records as required //… EOF found.

Mark points

  • Include the ideas shown in the solution above.

Part 4 — solution

2 5 5 9 9

Mark points

  • Include the ideas shown in the solution above.

Question 5

Paper page 4 for Q5
Original paper page 4

Part 5 — solution

One mark per mark point – SISD (Max 2) 4 MP1 Single Instruction, Single Data (architecture). // Data is taken from a single source and a single instruction is performed on the data. MP2 Contains one processor, a control unit and a memory unit. MP3 …that executes instructions sequentially. One mark per mark point – MIMD (Max 2) MP4 Multiple Instruction, Multiple Data (architecture). // At any time, any processor can execute different instructions on different sets of data. MP5 Contains many processors MP6 …that operate asynchronously / independently. 2023 Page 4 of 9 9618/33 Cambridge International AS & A Level – Mark Scheme October/November PUBLISHED 2023

Mark points

  • Include the ideas shown in the solution above.

Part 5 — solution

Answer: OR

5 3 3 3 3 27 27 3 OR

Mark points

  • Correct result: OR

Part 5 — solution

2 3 5 4 9 27 9 3

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 every shaded block of rows for column Z correct (Max 3) 3 A B C D Z

Mark points

  • Include the ideas shown in the solution above.

Part 6(b) — solution

  1. (Y =) A.B.C.D + A.B.C.D + A.B.C.D + A.B.C.D
  2. (Y =) A.D.(B.C + B.C + B.C + B.C)
  3. (Y =) A.D.(B.(C + C) + B.(C + C))
  4. (Y =) A.D.(B.(1) + B.(1))
  5. (Y =) A.D.(B + B)
  6. (Y =) A.D.(1)
  7. (Y =) A.D

Mark points

  • (Y =) A.B.C.D + A.B.C.D + A.B.C.D + A.B.C.D
  • (Y =) A.D.(B.C + B.C + B.C + B.C)
  • (Y =) A.D.(B.(C + C) + B.(C + C))
  • (Y =) A.D.(B.(1) + B.(1))
  • (Y =) A.D.(B + B)
  • (Y =) A.D.(1)
  • (Y =) A.D

Question 7

Paper page 7 for Q7
Original paper page 7

Part 7(a) — solution

One mark for a benefit (Max 1) e.g. 2 MP1 The user interface hides the complexities of the computer hardware/operating system from the user MP2 It provides appropriate access systems for users with differing needs MP3 Complex commands involving memory locations/buses/computer hardware/ are avoided One mark for a valid example (Max 1) e.g. Clicking on icon rather than writing code Using a graphical user interface / icons for navigation

Mark points

  • Include the ideas shown in the solution above.

Part 7(b) — solution

Blocked (state) 1

Mark points

  • Include the ideas shown in the solution above.

Part 7(c) — solution

One mark per mark point (Max 2) 2 MP1 When the time slice of the running process expires (round robin). MP2 …and there is a process with a higher priority in the ready queue, the running process is pre-empted MP3 When an interrupt arrives at the CPU, (the process running on the CPU gets pre-empted).

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 for each correctly completed line (Max 5) 5 DECLARE Customer : TAccount DECLARE Location : INTEGER DECLARE AccountFile : STRING AccountFile  "AccountRecords.dat" OPENFILE AccountFile FOR RANDOM OUTPUT "Please enter an account number" INPUT Customer.AccountNumber Location  Hash(Customer.AccountNumber) SEEK AccountFile, Location GETRECORD AccountFile, Customer OUTPUT Customer CLOSEFILE AccountFile

Mark points

  • Include the ideas shown in the solution above.

Part 8(b) — solution

One mark for correct definition 1 (Exception handling is the process of) responding to an unexpected event when the program is running so it does not halt unexpectedly

Mark points

  • Include the ideas shown in the solution above.

Part 8(c) — solution

  1. Programming errors
  2. User errors
  3. Hardware failure
  4. Runtime errors

Mark points

  • Programming errors
  • User errors
  • Hardware failure
  • Runtime errors

Question 9

Paper page 9 for Q9
Original paper page 9

Part 9(a)(i) — solution

  1. (5 – 2)
  2. * (5 + 4) / 9

Mark points

  • (5 – 2)
  • * (5 + 4) / 9

Part 9(a)(ii) — solution

One mark per ring (Max 4) 4

Mark points

  • Include the ideas shown in the solution above.

Question 10

Paper page 10 for Q10
Original paper page 10

Part 10(a) — solution

  1. CONSTANT Capacity = 25

Mark points

  • CONSTANT Capacity = 25

Part 10(b) — solution

  1. IF TopPointer >= BasePointer THEN

Mark points

  • IF TopPointer >= BasePointer THEN

Part 10(c) — solution

One mark per mark point (Max 2) 2 MP1 A queue is a first in first out / FIFO data structure and a stack is a first in last out / FILO / LIFO data structure // Data is removed from a queue in the order it is received and removed from a stack in the reverse order to which it is received MP2 Both ADTs can vary in size / are of indeterminate length MP3 Data is popped and pushed (onto/from a stack) at the same end but it is enqueued and dequeued (to/from a queue) at different/opposite ends // a queue has two accessible ends and a stack has only one MP4 A stack has only one moveable pointer whereas a queue has two.

Mark points

  • Include the ideas shown in the solution above.

Question 11

Paper page 12 for Q11
Original paper page 12

Part 11(a) — solution

One mark for each correctly completed clause (Max 3) 3 (22) student(anthony). (23) choice1(anthony, history). (24) choice2(anthony, geography).

Mark points

  • Include the ideas shown in the solution above.

Part 11(c) — solution

  1. student(N)
  2. subject(S)
  3. choice1(N, S)
  4. all logical operators correct with no additional code (see example

Mark points

  • student(N)
  • subject(S)
  • choice1(N, S)
  • all logical operators correct with no additional code (see example

Question 12

Paper page 14 for Q12
Original paper page 14

Part 12 — solution

One mark per mark point (Max 4) 4 MP1 An artificial neural network is the component of artificial intelligence that is meant to simulate the functioning of a biological brain. MP2 Artificial neural networks are a key component of machine learning. MP3 They can solve problems that would prove impossible or difficult for humans // Artificial neural networks have self-learning capabilities that enable them to produce better results as more data becomes available MP4 Artificial neural networks can be layered (input, hidden and output layers) // Artificial neural networks have many interconnected layers, some / many of which are hidden MP5 Weights are assigned between nodes MP6 Weights are adjusted through training to give a more accurate result MP7 More complex learning capabilities / more accurate results are available with larger numbers of hidden layers 2023 Page 9 of 9

Mark points

  • Include the ideas shown in the solution above.

Question 64

Part 64 — solution

  1. correct mantissa
  2. correct exponent

Mark points

  • correct mantissa
  • correct exponent