9618/32 · May/June 2024 · Worked solutions

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

Question 0

Part 0 — solution

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

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

0 0 1 1 1 1 1 0

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

0 1 1 1 0 1 0 1

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

1 0 1 0 1 1 0 1

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

1 1 1 0 0 1 0 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) — solution

One mark per mark point (Max 2) 2 MP1 When the number of bits in the mantissa is raised, the precision / accuracy of the number represented increases // when the number of bits in the mantissa is lowered, the precision / accuracy of the number represented reduces. MP2 When the number of bits in the exponent is reduced, the range of numbers that can be represented is reduced // when the number of bits in the exponent is increased, the range of possible numbers that can be represented increases. MP3 When the range increases the accuracy decreases // When the range decreases the accuracy increases.

Mark points

  • Include the ideas shown in the solution above.

Part 1(b) — solution

  1. number converted to binary e.g. 54.8125 = 00110110.1101 // Fractions method 1/2 + 1/4 + 1/16 + 1/32 + 1/128 + 1/256
  2. exponent = 6 // Moving binary point the correct number of places
  3. correct answer

Mark points

  • number converted to binary e.g. 54.8125 = 00110110.1101 // Fractions method 1/2 + 1/4 + 1/16 + 1/32 + 1/128 + 1/256
  • exponent = 6 // Moving binary point the correct number of places
  • correct answer

Part 1 — solution

0 0 0 1 1 0 0 0

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

0 1 0 1 0 1 0 1

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

1 0 0 0 1 1 0 1

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

1 1 0 0 0 1 0 1

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 per mark point (Max 2) 2 MP1 Protocols provide a standard set of rules that enables successful data transfer between devices. MP2 Allows communication between devices on different platforms. MP3 Makes communications independent of software and hardware.

Mark points

  • Include the ideas shown in the solution above.

Part 2(b) — solution

One mark per mark point 2 MP1 Sending - SMTP MP2 Receiving – POP3 // IMAP // Post Office Protocol 3

Mark points

  • Include the ideas shown in the solution above.

Part 2(c) — solution

One mark per mark point (Max 3) 3 MP1 BitTorrent allows the sharing of files between thousands of users who are connected together over the internet. MP2 It allows more users to share files with each other than would be the case with a peer-to-peer network. MP3 Users share files directly with each other // the users’ computers are acting as peers MP4 … no web server / central device is used // all users are of equal status. University Press & Assessment 2024 Page 4 of 14 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2024

Mark points

  • Include the ideas shown in the solution above.

Question 3

Paper page 4 for Q3
Original paper page 4

Part 3(a) — solution

One mark per mark point (Max 3) 3 MP1 A data type that is defined without referencing another data type. MP2 It can be a primitive data type found in a programming language or a user-defined data type. MP3 Example – enumerated data type / pointer data type / allow a correct example of an enumerated or pointer data type declaration.

Mark points

  • Include the ideas shown in the solution above.

Part 3(b) — solution

  1. TYPE Numbers = SET OF INTEGER

Mark points

  • TYPE Numbers = SET OF INTEGER

Question 4

Paper page 5 for Q4
Original paper page 5

Part 4 — solution

One mark per mark point (Max 4) 4 MP1 Sheila’s computer uses an algorithm to generate a matching pair of keys private and public MP2 Sheila’s computer sends Fred’s computer Sheila’s public key // Fred‘s computer acquires Sheila’s public key MP3 Fred’s computer encrypts the document/plain text using Sheila’s public key to create cipher text MP4 Fred’s computer sends the cipher text to Sheila’s computer The cipher text can only be decrypted using Sheila’s private key // Sheila’s computer uses Sheila’s private key to decrypt the cipher text.

Mark points

  • Include the ideas shown in the solution above.

Question 5

Paper page 6 for Q5
Original paper page 6

Part 5(a) — solution

One mark 7 2 – 8 + 2 One mark 9 5 - / Complete answer

Mark points

  • Include the ideas shown in the solution above.

Part 5(b) — solution

One mark per ring (Max 4) 4

Mark points

  • Include the ideas shown in the solution above.

Part 5(c) — solution

One mark per correct term (Max 3) 3 (a – c + b) * (d + b) /c Complete correct answer (((a – c) + b) * (d + b))/c Or (a – c + b) * (d + b)/c University Press & Assessment 2024 Page 6 of 14 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2024

Mark points

  • Include the ideas shown in the solution above.

Question 6

Paper page 7 for Q6
Original paper page 7

Part 6 — solution

6 15 15 15 15 15 15 30

Mark points

  • Include the ideas shown in the solution above.

Part 6(a) — solution

One mark for working, all five columns P, Q, R, S and T 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 T Z

Mark points

  • Include the ideas shown in the solution above.

Part 6(b) — solution

  1. (Z = ) A.B.C + A.B.C + A.B.C + A.B.C + A.B.C + A.B.C

Mark points

  • (Z = ) A.B.C + A.B.C + A.B.C + A.B.C + A.B.C + A.B.C

Part 6(c)(i) — solution

Answer: BC

Two marks if all correct 2 One mark if only one error present BC

Mark points

  • Correct result: BC

Part 6(c)(ii) — solution

Answer: BC

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

Mark points

  • Correct result: BC

Part 6(c)(iii) — solution

B+C 1

Mark points

  • Include the ideas shown in the solution above.

Question 7

Paper page 8 for Q7
Original paper page 8

Part 7(a) — solution

One mark per mark point (Max 2) 2 MP1 Direct access allows a record to be found in a file without other records being read. MP2 Records are found by using the key field of the target record // the location of the record is found using a hashing algorithm.

Mark points

  • Include the ideas shown in the solution above.

Part 7(b)(i) — solution

One mark per mark point (Max 2) 2 MP1 In sequential files, an index of all key fields is kept MP2 The index is searched for the address of the file location where the target record is stored. University Press & Assessment 2024 Page 8 of 14 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2024

Mark points

  • Include the ideas shown in the solution above.

Part 7(b)(ii) — solution

One mark per mark point (Max 2) 2 MP1 A hashing algorithm is used on the key field of the record MP2 … to calculate the address of the memory location where the target record is expected to be stored. MP3 Method to find a record if it is not at the expected location e.g. linear probing, search overflow area etc. University Press & Assessment 2024 Page 9 of 14 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2024

Mark points

  • Include the ideas shown in the solution above.

Question 8

Paper page 9 for Q8
Original paper page 9

Part 8(a) — solution

  1. WHILE Found = FALSE AND NotInList = FALSE // Count <= EndOfList
  2. IF ToFind = Widgets[Count] // Widgets[Count] = ToFind THEN
  3. IF Found = FALSE AND Count > EndOfList THEN
  4. IF Found = TRUE THEN

Mark points

  • WHILE Found = FALSE AND NotInList = FALSE // Count <= EndOfList
  • IF ToFind = Widgets[Count] // Widgets[Count] = ToFind THEN
  • IF Found = FALSE AND Count > EndOfList THEN
  • IF Found = TRUE THEN

Part 8(b) — solution

Max 4 4 One mark per mark point (Max 3) MP1 Linear search sequentially checks each element of the array / list. MP2 … until the matching element is found, or the end of the array / list is reached. MP3 Binary search finds the mid-point of an array/list and determines which side contains the item to be found MP4 … it discards the half of the array/list not containing the search item // … it finds the position of a target value within an array / list by repeatedly halving the target search field. MP5 The binary search requires the elements to be sorted // The linear search does not require the elements to be sorted. MP6 The binary search will usually do many fewer comparisons of records/iterations against the target than a linear search before it finds its target. MP7 Linear search starts at the beginning of the array/list and binary search starts in the middle of the array/list. One mark per mark point (Max 2) MP8 Big O for binary search is O (Log2 n) MP9 Big O for linear search is O (n) MP10 Big O notation is used to indicate the time / space complexity of an algorithm University Press & Assessment 2024 Page 11 of 14 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2024

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

One mark per mark point for up to two benefits (Max 2) 4 MP1 COMPATIBILTY e.g. Applications that aren’t compatible with the host computer can be run on the virtual machine // It is possible to emulate old software on a new system by running a compatible guest operating system as a virtual machine // Software can be tried on different OS on the same hardware. MP2 PROTECTION e.g. The guest operating system has no effect on anything outside the virtual machine other virtual machines or the host computer//Virtual machines are useful for testing as they will not crash the host computer if something goes wrong // Easier to recover if software causes a system crash as virtual machine software protects the host system. MP3 COST e.g. No need to buy extra computers / hardware as multiple virtual machines can be implemented on the same hardware. One mark per mark point for up to two limitations (Max 2) MP4 PERFORMANCE e.g. The performance of the guest operating system will not be as good on a virtual machine as it would be on its own compatible machine because of the extra code / using more RAM/memory space // The performance of the VM is dependent on the capabilities of the host computer // Response times cannot be accurately measured using a virtual machine. MP5 COMPLEXITY e.g. Building an in-house virtual machine can be expensive, time consuming and complex to maintain / set-up. MP6 HARDWARE/SOFTWARE ISSUES e.g. Some hardware/software can’t be emulated with a virtual machine // Some of the host machine’s hardware can’t be directly accessed by the virtual machine.

Mark points

  • Include the ideas shown in the solution above.

Part 9(b) — solution

One mark per mark point – host operating system (Max 2) 3 MP1 The host operating system is the normal operating system for the host computer / machine. MP2 It has control of all the resources of the host computer / machine. // It can access the physical resources of the host computer / machine. MP3 It provides a user interface to operate the virtual machine software. MP4 It also runs the virtual machine software. One mark per mark point – guest operating system (Max 2) MP5 The guest operating system runs within the virtual machine. MP6 … it controls the virtual hardware/software during the emulation. // It accesses the actual hardware through the virtual machine and host operating system. MP7 It provides a virtual user interface for the emulated hardware/software. MP8 The guest operating system runs under the control of the host operating system. University Press & Assessment 2024 Page 12 of 14 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2024

Mark points

  • Include the ideas shown in the solution above.

Question 10

Paper page 11 for Q10
Original paper page 11

Part 10(a) — solution

One mark for each correctly completed clause (Max 4) 4 Example answer (25) client(jane). (26) activity(surfing). (27) choice(jane, surfing). (28) done(jane, sailing).

Mark points

  • Include the ideas shown in the solution above.

Part 10(b) — solution

  1. (List =) frankie, erik, henry 1

Mark points

  • (List =) frankie, erik, henry 1

Part 10(c) — solution

One mark per mark point (Max 4) 4 MP1 client(C) MP2 activity(A) MP3 done(C, A) MP4 all correct Boolean operators and punctuation (allow , for AND). There must be the correct number of terms and no additional lines of code Example answers may_choose_activity(C, A) IF client(C) AND activity(A) AND NOT done(C, A). client(C), activity(A), NOT (done(C, A)). University Press & Assessment 2024 Page 13 of 14 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2024

Mark points

  • Include the ideas shown in the solution above.

Question 11

Paper page 12 for Q11
Original paper page 12

Part 11 — solution

One mark per mark point (Max 3) 3 MP1 Reinforcement learning is a machine learning technique based on feedback / rewards / punishment. MP2 … in which an agent learns to behave in an environment by performing the actions and seeing the results of the actions. MP3 … for each good action, the agent gets positive feedback / reward and each bad action receives negative feedback / punishment. MP4 The agent learns automatically using feedback without any labelled data / specific instructions. MP5 Adjust node weightings to achieve the correct outcome. // Using feedback to improve its performance at accomplishing similar tasks. University Press & Assessment 2024 Page 14 of 14

Mark points

  • Include the ideas shown in the solution above.