9618/32 · October/November 2022 · 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 1 1 1 0 1 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

Mantissa Exponent 1

Mark points

  • Include the ideas shown in the solution above.

Part 1(b) — solution

  1. correct calculation of exponent seen
  2. correct application of exponent to mantissa seen
  3. 310.5 // –3101/2

Mark points

  • correct calculation of exponent seen
  • correct application of exponent to mantissa seen
  • 310.5 // –3101/2

Part 1(c) — solution

  1. Following an arithmetic/logical operation
  2. … the result is too small to be precisely represented in the available system // When the number of bits is not enough /

Mark points

  • Following an arithmetic/logical operation
  • … the result is too small to be precisely represented in the available system // When the number of bits is not enough /

Question 2

Paper page 3 for Q2
Original paper page 3

Part 2(a) — solution

  1. Code generation
  2. Optimisation

Mark points

  • Code generation
  • Optimisation

Part 2(b) — solution

  1. It checks that the code matches the grammar of the language // It checks that the tokens conform with the rules of the
  2. Syntax errors are reported
  3. A parse tree is produced

Mark points

  • It checks that the code matches the grammar of the language // It checks that the tokens conform with the rules of the
  • Syntax errors are reported
  • A parse tree is produced

Question 3

Paper page 3 for Q3
Original paper page 3

Part 3(a) — solution

  1. Protocols set a standard for communication
  2. Protocols enable communication/compatibility between devices from different manufacturers/platforms
  3. If two devices were sending messages to each other but using different protocols, they would not be able to

Mark points

  • Protocols set a standard for communication
  • Protocols enable communication/compatibility between devices from different manufacturers/platforms
  • If two devices were sending messages to each other but using different protocols, they would not be able to

Part 3(b) — solution

One mark for each correct answer 2 Application (Layer) Transport Internet/Network (Layer) Link

Mark points

  • Include the ideas shown in the solution above.

Part 3(c) — solution

  1. used by email clients to retrieve email messages // a pull protocol
  2. from a mail server (over a TCP/IP connection)
  3. keeps the server and client in sync (by not deleting the original email). // allows a copy of the email to be downloaded

Mark points

  • used by email clients to retrieve email messages // a pull protocol
  • from a mail server (over a TCP/IP connection)
  • keeps the server and client in sync (by not deleting the original email). // allows a copy of the email to be downloaded

Question 4

Paper page 4 for Q4
Original paper page 4

Part 4(a) — solution

  1. TYPE Aircraft = (C300, C350, D242, E757, X380)
  2. TYPE Aircraft = [1]

Mark points

  • TYPE Aircraft = (C300, C350, D242, E757, X380)
  • TYPE Aircraft = [1]

Part 4(b) — solution

  1. TYPE Flight and ENDTYPE correct
  2. DECLARE FlightNumber and DECLARE Destination as STRING
  3. DECLARE DepartureDate as DATE
  4. DECLARE AircraftType as Aircraft (correct data type from part 4(a))

Mark points

  • TYPE Flight and ENDTYPE correct
  • DECLARE FlightNumber and DECLARE Destination as STRING
  • DECLARE DepartureDate as DATE
  • DECLARE AircraftType as Aircraft (correct data type from part 4(a))

Part 4(c)(i) — solution

Example answer: 1 DECLARE Flight1 : Flight 2022 Page 6 of 16 9618/32 Cambridge International AS & A Level – Mark Scheme October/November 2022

Mark points

  • Include the ideas shown in the solution above.

Part 4(c)(ii) — solution

  1. Correct assignments of both string data values
  2. Correct assignments of date data value
  3. Correct assignments of enumerated data value

Mark points

  • Correct assignments of both string data values
  • Correct assignments of date data value
  • Correct assignments of enumerated data value

Question 5

Paper page 5 for Q5
Original paper page 5

Part 5 — solution

  1. The emulation of a computer system / hardware and/or software
  2. … using a host computer system
  3. Using guest operating system(s) for emulation
  4. Multiple guest operating systems / VMs can be used on the same computer
  5. Different instruction set architectures can be emulated on a single computer
  6. A virtual machine can crash without affecting the host machine
  7. There are security benefits // Trying a piece of suspicious software and if it is / has a virus, it will only infect the virtual
  8. Cost savings due to not needing to purchase extra hardware
  9. Can run legacy applications that are currently incompatible
  10. A virtual machine is less efficient / has poorer performance than real machines because of extra load on the host
  11. Performance of the guest system cannot be adequately measured
  12. A virtual machine may be affected by any weaknesses of the host machine
  13. Costly and/or complex to maintain / implement / manage
  14. Cannot emulate some hardware

Mark points

  • The emulation of a computer system / hardware and/or software
  • … using a host computer system
  • Using guest operating system(s) for emulation
  • Multiple guest operating systems / VMs can be used on the same computer
  • Different instruction set architectures can be emulated on a single computer
  • A virtual machine can crash without affecting the host machine
  • There are security benefits // Trying a piece of suspicious software and if it is / has a virus, it will only infect the virtual
  • Cost savings due to not needing to purchase extra hardware
  • Can run legacy applications that are currently incompatible
  • A virtual machine is less efficient / has poorer performance than real machines because of extra load on the host
  • Performance of the guest system cannot be adequately measured
  • A virtual machine may be affected by any weaknesses of the host machine
  • Costly and/or complex to maintain / implement / manage
  • Cannot emulate some hardware

Question 6

Paper page 6 for Q6
Original paper page 6

Part 6(a) — solution

  1. Symmetric encryption uses a single key and asymmetric encryption uses a pair of keys
  2. The symmetric single key is used by all, whereas only one of the keys for asymmetric encryption is available to

Mark points

  • Symmetric encryption uses a single key and asymmetric encryption uses a pair of keys
  • The symmetric single key is used by all, whereas only one of the keys for asymmetric encryption is available to

Part 6(b) — solution

  1. The organisation requests a certificate from a Certificate Authority (CA)
  2. The organisation may send their public key to CA
  3. The organisation gathers all the information required by the CA in order to obtain their certificate, which includes
  4. The CA verifies the organisation’s identity
  5. The CA generates / issues the certificate including the organisation’s public key (and other information)

Mark points

  • The organisation requests a certificate from a Certificate Authority (CA)
  • The organisation may send their public key to CA
  • The organisation gathers all the information required by the CA in order to obtain their certificate, which includes
  • The CA verifies the organisation’s identity
  • The CA generates / issues the certificate including the organisation’s public key (and other information)

Question 7

Paper page 6 for Q7
Original paper page 6

Part 7 — solution

  1. Supervised learning allows data to be collected, or a data output produced, from the previous experience
  2. In supervised learning, known input and associated outputs are given // uses sample data with known outputs (in
  3. Able to predict future outcomes based on past data
  4. Unsupervised machine learning helps all kinds of unknown patterns in data to be found
  5. Unsupervised learning only requires input data to be given
  6. Uses any data // not trained on the right output // uses unlabelled input data

Mark points

  • Supervised learning allows data to be collected, or a data output produced, from the previous experience
  • In supervised learning, known input and associated outputs are given // uses sample data with known outputs (in
  • Able to predict future outcomes based on past data
  • Unsupervised machine learning helps all kinds of unknown patterns in data to be found
  • Unsupervised learning only requires input data to be given
  • Uses any data // not trained on the right output // uses unlabelled input data

Question 8

Paper page 7 for Q8
Original paper page 7

Part 8(a) — solution

  1. One correct NAND or NOR gate with two separate inputs and one output
  2. Second correct logic gate of same type as first with two separate inputs and one output
  3. Correct connections between logic gates
  4. Correctly labelled inputs

Mark points

  • One correct NAND or NOR gate with two separate inputs and one output
  • Second correct logic gate of same type as first with two separate inputs and one output
  • Correct connections between logic gates
  • Correctly labelled inputs

Part 8(a) — solution

Or R/Reset S/Set

Mark points

  • Include the ideas shown in the solution above.

Part 8(b) — solution

To store a binary digit / (single) bit. 1 2022 Page 11 of 16 9618/32 Cambridge International AS & A Level – Mark Scheme October/November 2022

Mark points

  • Include the ideas shown in the solution above.

Part 8(c) — solution

  1. Correct application of De Morgan’s Law
  2. Correct application of Double Negation Law or Distributive Law
  3. Correct answer

Mark points

  • Correct application of De Morgan’s Law
  • Correct application of Double Negation Law or Distributive Law
  • Correct answer

Question 9

Paper page 8 for Q9
Original paper page 8

Part 9(a) — solution

  1. Process scheduling allows more than one program/task to appear to be executed at the same time / enables multi-
  2. To allow high priority jobs to be completed first
  3. To keep the CPU busy all the time
  4. … to ensure that all processes execute efficiently
  5. … and to have reduced wait times for all processes / to ensure all processes have fair access to the CPU / prevent

Mark points

  • Process scheduling allows more than one program/task to appear to be executed at the same time / enables multi-
  • To allow high priority jobs to be completed first
  • To keep the CPU busy all the time
  • … to ensure that all processes execute efficiently
  • … and to have reduced wait times for all processes / to ensure all processes have fair access to the CPU / prevent

Part 9(b) — solution

  1. Process are executed in ascending order of the amount of CPU time required // Short processes are executed first and
  2. …which leads to an increased throughput (because more processes can be executed in a smaller amount of time)
  3. Each process is served by the CPU for a fixed time/time slice (so all processes are given the same priority)
  4. Starvation doesn’t occur (because for each round robin cycle, every process is given a fixed time/time slice to execute)
  5. No complex logic, each process request is queued as it is received and executed one by one
  6. Starvation doesn’t occur (because every process will eventually get a chance to run) // less processor overhead

Mark points

  • Process are executed in ascending order of the amount of CPU time required // Short processes are executed first and
  • …which leads to an increased throughput (because more processes can be executed in a smaller amount of time)
  • Each process is served by the CPU for a fixed time/time slice (so all processes are given the same priority)
  • Starvation doesn’t occur (because for each round robin cycle, every process is given a fixed time/time slice to execute)
  • No complex logic, each process request is queued as it is received and executed one by one
  • Starvation doesn’t occur (because every process will eventually get a chance to run) // less processor overhead

Question 10

Paper page 9 for Q10
Original paper page 9

Part 10(a) — solution

  1. Encapsulation – putting properties and methods inside a class // ensures sensitive data is hidden from users by hiding
  2. Getter – method that is used to return the value of a property
  3. Setter – method that is used to update the value of a property

Mark points

  • Encapsulation – putting properties and methods inside a class // ensures sensitive data is hidden from users by hiding
  • Getter – method that is used to return the value of a property
  • Setter – method that is used to update the value of a property

Part 10(b) — solution

  1. properties correct
  2. setters correct
  3. getters correct

Mark points

  • properties correct
  • setters correct
  • getters correct

Question 11

Paper page 10 for Q11
Original paper page 10

Part 11(a) — solution

  1. Correct HeadPointer
  2. Any three correct NextPointer
  3. All six NextPointer correct

Mark points

  • Correct HeadPointer
  • Any three correct NextPointer
  • All six NextPointer correct

Part 11(b) — solution

  1. IF Flower[Pointer] = FlowerName THEN
  2. IF Pointer = 0 THEN // IF Found <> 0 THEN

Mark points

  • IF Flower[Pointer] = FlowerName THEN
  • IF Pointer = 0 THEN // IF Found <> 0 THEN

Part 11(c) — solution

  1. Include a free list pointer
  2. …to reuse the unused space
  3. …as a linked list of free space

Mark points

  • Include a free list pointer
  • …to reuse the unused space
  • …as a linked list of free space