9618/32 · May/June 2023 · Worked solutions

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

Question 0

Part 0 — solution

  1. exponent = 6 (movement of 6 bicimal places seen to find what exponent should

Mark points

  • exponent = 6 (movement of 6 bicimal places seen to find what exponent should

Question 1

Paper page 2 for Q1
Original paper page 2

Part 1(a) — solution

  1. correct mantissa
  2. correct exponent with associated working

Mark points

  • correct mantissa
  • correct exponent with associated working

Part 1(b) — solution

One mark per mark point (Max 3) 3 MP1 the mantissa of the number would need to be 0.101011111001 / 13 bits / digits MP2 … it can only store 10 bits / digits MP3 The 3 least significant digits would be truncated MP4 …causing a loss of precision

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

2 3 4 5 6 7 8 9 10 11 12 IF 1.1 2.1 3.1 4.1 5.1 6.1 Processor stages ID 1.2 2.2 3.2 4.2 5.2 6.2 OF 1.3 2.3 3.3 4.3 5.3 6.3 IE 1.4 2.4 3.4 4.4 5.4 6.4 WB 1.5 2.5 3.5 4.5 5.5 6.5 Example answer 2 Clock cycles

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

2 3 4 5 6 7 8 9 10 11 12 IF A B C D E F Processor stages ID A B C D E F OF A B C D E F IE A B C D E F WB A B C D E F

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

THEN RearPointer  RearPointer + 1 IF RearPointer > MaxLength – 1 THEN RearPointer  0 ENDIF Queue[RearPointer]  NewItem Length  Length + 1 ENDIF ENDPROCEDURE

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 3) 3 MP1 records are stored in a particular order MP2 the order is determined based on the value in a key field MP3 records are accessed one after the other MP4 records can be found by searching from the beginning of the file, record by record, MP5 … until the required record is found or key field value is exceeded.

Mark points

  • Include the ideas shown in the solution above.

Part 2(b) — solution

Answer: 3003 3 · 1029 4 · 7630 0

One mark for each correct hash value (Max 2) 2 Record key Hash value 3003 3 1029 4 7630 0 2023 Page 4 of 12 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2023

Mark points

  • Correct result: 3003 3
  • Correct result: 1029 4
  • Correct result: 7630 0

Question 3

Paper page 4 for Q3
Original paper page 4

Part 3(a) — solution

One mark per correct valid/invalid and reason combination (Max 2) 2 9SW – Invalid Reason - This begins with a digit and a variable must begin with a letter UWY – Valid Reason – This begins with a letter and is followed by two other letters.

Mark points

  • Include the ideas shown in the solution above.

Part 3(b) — solution

  1. <word> ::= <letter>|
  2. …<word><letter>
  3. <variable> ::= <word>|<word><digit>

Mark points

  • <word> ::= <letter>|
  • …<word><letter>
  • <variable> ::= <word>|<word><digit>

Part 3(c)(i) — solution

Answer: AC768

Answer must be two letters followed by one, two or three digits using the letters 1 and digits on the syntax diagram. Example answer AC768

Mark points

  • Correct result: AC768

Part 3(c)(ii) — solution

  1. always has only two letters
  2. one, two or three digits possible
  3. correct arrows, boxes and name of syntax diagram

Mark points

  • always has only two letters
  • one, two or three digits possible
  • correct arrows, boxes and name of syntax diagram

Question 4

Paper page 6 for Q4
Original paper page 6

Part 4 — solution

One mark for each correct line connecting an OOP term to its description 4 (Max 4). OOP term Description methods used to return the value of a property Encapsulation the process of putting data and methods together as a single unit Getters methods used to update the value of a property Polymorphism allows methods to be redefined for derived classes Setters enables the defining of a new class that inherits from a parent class

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 per mark point (Max 2) 2 MP1 to produce a virtually unbreakable encryption system / send virtually un-hackable secure messages … MP2 …using the laws / principles of quantum mechanics / properties of photons MP3 detects eavesdropping … MP4 …because the properties of photons change MP5 to protect security of data transmitted over fibre optic cables MP6 to enable the use of longer keys.

Mark points

  • Include the ideas shown in the solution above.

Part 5(b) — solution

One mark per mark point (Max 3) 3 MP1 Symmetric cryptography uses a single key to encrypt and decrypt messages, Asymmetric cryptography uses two. MP2 The symmetric key is shared, whereas with asymmetric, only the public key is shared (and the private key isn’t). MP3 … the risk of compromise is higher with symmetric encryption and asymmetric encryption is more secure. MP4 Symmetric cryptography is a simple process that can be carried out quickly, but asymmetric is much more complex, so slower. MP5 The length of the keys in symmetric encryption are (usually) shorter than those for asymmetric (128/256 bits v 2048 bits). 2023 Page 6 of 12 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2023

Mark points

  • Include the ideas shown in the solution above.

Question 6

Paper page 7 for Q6
Original paper page 7

Part 6(a) — solution

One mark for TYPE TAppointments and ENDTYPE correct 4 One mark for every two correct declarations (Max 3) Example answer TYPE TAppointments DECLARE Name : STRING DECLARE DateOfBirth : DATE DECLARE Telephone : STRING DECLARE LastAppointment : DATE DECLARE NextAppointment : DATE DECLARE TreatmentsComplete : BOOLEAN ENDTYPE

Mark points

  • Include the ideas shown in the solution above.

Part 6(b) — solution

One mark for each correctly completed line (Max 5) 5 DECLARE DentalRecord : ARRAY[1:250] OF TAppointments DECLARE DentalFile : STRING DECLARE Count : INTEGER DentalFile  "DentalFile.dat" OUTPUT "The file ", DentalFile, " contains these records:" OPENFILE DentalFile FOR RANDOM Count  1 REPEAT SEEK DentalFile, Count GETRECORD DentalFile, DentalRecord[Count] OUTPUT DentalRecord[Count] Count  Count + 1 UNTIL EOF(DentalFile) CLOSEFILE DentalFile

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 Packet switching is most commonly used on data networks such as the internet to send large data files that don’t need to be live streamed MP2 Packet switching is used when it is necessary to be able to overcome failed/faulty lines by rerouting. MP3 Packet switching is used when it is necessary for the communication to be more secure. MP4 Packet switching is used for high volume data transmission. MP5 Packet switching is used when it isn’t necessary to use all the bandwidth. MP6 Specific examples e.g. email, text messages, documents, VOIP etc. (up to two marks). 2023 Page 7 of 12 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2023

Mark points

  • Include the ideas shown in the solution above.

Part 7(b) — solution

One mark per mark point (Max 4) 4 MP1 Circuit switching uses a dedicated channel to make communication, whereas packet switching forms data into packets to transmit over a digital network. MP2 The dedicated path for circuit switching must be established before the transfer of data can commence, which is not the case with packet switching (as it doesn’t require a dedicated path). MP3 Data in packet switching is split into packets, in circuit switching the message remains intact. MP4 All of the transmission in circuit switching follows the same path whereas different packets in packet switching can take different routes. MP5 The message is received in the same order in which it is sent with circuit switching, but with packet switching, the packets can be received out of order (for assembly at the destination). MP6 Circuit switching is implemented at the physical layer while packet switching is implemented at the network layer. MP7 Circuit switching uses the whole bandwidth of the channel used, packet switching can share bandwidth. MP8 Circuit switching communication ends with an error but packet switching allows packets to be re-sent. MP9 Circuit switching is a simpler process than packet switching.

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

One mark per mark point (Max 2) 2 MP1 Pipelining allows several instructions to be processed simultaneously / concurrently. MP2 … therefore, increasing the CPU instruction throughput / the number of instructions completed per unit of time. MP3 Each instruction stage / subtask is completed during one clock cycle MP4 No two instructions can execute their same stage of instruction / subtask at the same clock cycle. MP5 … e.g., while one instruction is being decoded, the next instruction can be fetched, etc. 2023 Page 8 of 12 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2023

Mark points

  • Include the ideas shown in the solution above.

Part 8(b) — solution

  1. First stage of first instruction in first clock cycle
  2. First instruction successfully completed over five clock cycles
  3. Remaining instructions completed over ten clock cycles …
  4. … with no extra instruction sections added on any row

Mark points

  • First stage of first instruction in first clock cycle
  • First instruction successfully completed over five clock cycles
  • Remaining instructions completed over ten clock cycles …
  • … with no extra instruction sections added on any row

Question 9

Paper page 10 for Q9
Original paper page 10

Part 9(a) — solution

  1. (Z =) ABCD + ABCD + ABCD + ABCD + ABCD + ABCD

Mark points

  • (Z =) ABCD + ABCD + ABCD + ABCD + ABCD + ABCD

Part 9(b) — solution

Two marks if no errors present 2 One mark if one error present 2023 Page 9 of 12 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2023

Mark points

  • Include the ideas shown in the solution above.

Part 9(c) — solution

One mark for each correct loop (Max 2) 2

Mark points

  • Include the ideas shown in the solution above.

Part 9(d) — solution

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

Mark points

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

Part 9(e) — solution

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

Mark points

  • (Z =) A (B + C)

Question 10

Paper page 11 for Q10
Original paper page 11

Part 10(a) — solution

One mark from: 1 Supervised (learning) Unsupervised (learning) Reinforcement (learning) Deep (learning) 2023 Page 10 of 12 9618/32 Cambridge International AS & A Level – Mark Scheme May/June 2023

Mark points

  • Include the ideas shown in the solution above.

Part 10(b) — solution

  1. Node B (from Begin) (Line 3 in table)
  2. Node C (from Begin) (Line 4 in table)
  3. Node D (from Begin) (Line 5 in table)
  4. Node G (from C) (Line 6 in table)
  5. Node F and Node End (from G) (Lines 7 and 8 in table)
  6. Node End (from F) (Line 9 in table)
  7. Begin  C  G  F  End

Mark points

  • Node B (from Begin) (Line 3 in table)
  • Node C (from Begin) (Line 4 in table)
  • Node D (from Begin) (Line 5 in table)
  • Node G (from C) (Line 6 in table)
  • Node F and Node End (from G) (Lines 7 and 8 in table)
  • Node End (from F) (Line 9 in table)
  • Begin  C  G  F  End

Question 11

Paper page 13 for Q11
Original paper page 13

Part 11(a)(i) — solution

One mark for every two correct identifiers (Max 2) 2 Identifier Data type Description Queue STRING An array to store the contents of the queue. RearPointer INTEGER Points to the last term of the queue. Length INTEGER Indicates the number of items in the queue. FrontPointer INTEGER Points to the first term of the queue.

Mark points

  • Include the ideas shown in the solution above.

Part 11(a)(ii) — solution

  1. CONSTANT MaxLength = 50
  2. IF Length < MaxLength THEN // IF Length <= MaxLength -

Mark points

  • CONSTANT MaxLength = 50
  • IF Length < MaxLength THEN // IF Length <= MaxLength -

Part 11(b) — solution

  1. Print jobs are expected to be actioned by the printer in the order they are
  2. … because the printer queue is a queue, the first job to be sent to the
  3. If the printer queue was on a stack, the first job the printer received would

Mark points

  • Print jobs are expected to be actioned by the printer in the order they are
  • … because the printer queue is a queue, the first job to be sent to the
  • If the printer queue was on a stack, the first job the printer received would