9618/33 · 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 0 0 0 0 0 0 1 0 1 1 0 2022 Page 4 of 15 9618/33 Cambridge International AS & A Level – Mark Scheme October/November 2022

Mark points

  • Include the ideas shown in the solution above.

Question 00

Part 00 — solution

Answer: CD

01 11 10 CD

Mark points

  • Correct result: CD

Question 1

Paper page 2 for Q1
Original paper page 2

Part 1(a) — solution

  1. Conversion to binary + 202 = 11001010 // repeated division by 2 // 128 + 64 + 8 + 2
  2. Appropriate shifting of binary point for + 202 = 0.1100101  28 // exponent = 8
  3. = 01100101 00001000 (stored as mantissa and exponent)

Mark points

  • Conversion to binary + 202 = 11001010 // repeated division by 2 // 128 + 64 + 8 + 2
  • Appropriate shifting of binary point for + 202 = 0.1100101  28 // exponent = 8
  • = 01100101 00001000 (stored as mantissa and exponent)

Part 1(b) — solution

  1. Appropriate method of conversion e.g
  2. 256 + 32 + 16 + 4 +2
  3. Realisation that the exponent doesn’t change // value of exponent = 8 // appropriate shifting of binary point

Mark points

  • Appropriate method of conversion e.g
  • 256 + 32 + 16 + 4 +2
  • Realisation that the exponent doesn’t change // value of exponent = 8 // appropriate shifting of binary point

Part 1(c)(i) — solution

The mantissa does not begin with 01/10 (as its most significant bits) 1 // the mantissa begins with 00 // first two digits are the same.

Mark points

  • Include the ideas shown in the solution above.

Part 1(c)(ii) — solution

  1. Correct mantissa
  2. Correct exponent

Mark points

  • Correct mantissa
  • Correct exponent

Question 2

Paper page 3 for Q2
Original paper page 3

Part 2 — solution

One mark for each point (Max 3) 5 MP1 The Transport Layer breaks data into manageable packets / performs segmentation MP2 It sequences the packets // adds data to the packet header // adds a packet header MP3 It sends the packets to the Internet / Network Layer // It receives data from the Application Layer MP4 It controls the flow of packets MP5 It handles packet loss/corruption // Acknowledges receipt of complete error free packets One mark for each point (Max 3) MP6 The Internet Layer identifies the intended network and host MP7 It transmits packets to the (Data) Link / Physical Layer MP8 It routes the packets independently through the optimum route MP9 It addresses packets with their source and destination IP addresses MP10 It then uses an IP address and port number to form a socket.

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

A (user-defined non-composite) data type with an ordered list of possible values. 1

Mark points

  • Include the ideas shown in the solution above.

Part 3(b) — solution

A user-defined non-composite data type used to reference a memory location. 1

Mark points

  • Include the ideas shown in the solution above.

Part 3(c) — solution

  1. TYPE Quarter1 = (January, February, March)
  2. TYPE Quarter1 = [1]

Mark points

  • TYPE Quarter1 = (January, February, March)
  • TYPE Quarter1 = [1]

Part 3(d)(i) — solution

DECLARE Pet1 : Pet 1 2022 Page 5 of 15 9618/33 Cambridge International AS & A Level – Mark Scheme October/November 2022

Mark points

  • Include the ideas shown in the solution above.

Part 3(d)(ii) — solution

  1. Correct assignment of all string data values
  2. Correct assignment of char data value
  3. Correct assignment of integer data value

Mark points

  • Correct assignment of all string data values
  • Correct assignment of char data value
  • Correct assignment of integer data value

Question 4

Paper page 5 for Q4
Original paper page 5

Part 4 — solution

One mark for each correct line connecting one stage of compilation to a description 4

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

a b * b + d - 15 + 1

Mark points

  • Include the ideas shown in the solution above.

Part 5(b)(i) — solution

(a - b) * (c + d) / a 1

Mark points

  • Include the ideas shown in the solution above.

Part 5(b)(ii) — solution

  1. 39 1

Mark points

  • 39 1

Question 6

Paper page 6 for Q6
Original paper page 6

Part 6(a) — solution

  1. A private key is the unpublished/secret key/never transmitted anywhere
  2. It has a matching public key
  3. It is used to decrypt data that was encrypted with its matching public key

Mark points

  • A private key is the unpublished/secret key/never transmitted anywhere
  • It has a matching public key
  • It is used to decrypt data that was encrypted with its matching public key

Part 6(b) — solution

  1. The message to be sent is encrypted using the recipient’s public key. // The message to be sent is encrypted using
  2. The message is decrypted using the recipient’s private key. // The message is decrypted using the sender’s public

Mark points

  • The message to be sent is encrypted using the recipient’s public key. // The message to be sent is encrypted using
  • The message is decrypted using the recipient’s private key. // The message is decrypted using the sender’s public

Part 6(c) — solution

  1. The message together with the digital signature is decrypted using the receiver’s private key
  2. The digital signature received is decrypted with the sender’s public key to recover the message digest sent
  3. The decrypted message received is hashed with the agreed hashing algorithm to reproduce the message digest of the
  4. The two message digests are compared
  5. … if both digests are the same the message has not been altered // if they are different the message has been

Mark points

  • The message together with the digital signature is decrypted using the receiver’s private key
  • The digital signature received is decrypted with the sender’s public key to recover the message digest sent
  • The decrypted message received is hashed with the agreed hashing algorithm to reproduce the message digest of the
  • The two message digests are compared
  • … if both digests are the same the message has not been altered // if they are different the message has been

Question 7

Paper page 7 for Q7
Original paper page 7

Part 7(a) — solution

Answer: AB

Two marks if no errors present 2 One mark if one error present AB

Mark points

  • Correct result: AB

Part 7(b) — solution

One mark for correct loop (Max 2) 2 2022 Page 9 of 15 9618/33 Cambridge International AS & A Level – Mark Scheme October/November 2022

Mark points

  • Include the ideas shown in the solution above.

Part 7(c) — 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

Question 8

Paper page 8 for Q8
Original paper page 8

Part 8(a) — solution

  1. Disk / secondary storage is used to extend the RAM / memory available
  2. … so the CPU appears to be able to access more memory space than the available RAM
  3. Only the data in use needs to be in main memory so data can be swapped between RAM and virtual memory as
  4. Virtual memory is created temporarily

Mark points

  • Disk / secondary storage is used to extend the RAM / memory available
  • … so the CPU appears to be able to access more memory space than the available RAM
  • Only the data in use needs to be in main memory so data can be swapped between RAM and virtual memory as
  • Virtual memory is created temporarily

Part 8(b) — solution

  1. Paging allows the memory to be divided into fixed size blocks and
  2. The operating system divides the memory into pages, the compiler is responsible for calculating the segment size
  3. Access times for paging is faster than for segmentation

Mark points

  • Paging allows the memory to be divided into fixed size blocks and
  • The operating system divides the memory into pages, the compiler is responsible for calculating the segment size
  • Access times for paging is faster than for segmentation

Question 9

Paper page 8 for Q9
Original paper page 8

Part 9(a) — solution

  1. Uses artificial neural network(s)
  2. … that contain(s) a high number of hidden layers
  3. … modelled on the human brain
  4. Deep learning uses many layers to progressively extract higher level features from the (raw) input
  5. Deep learning is a specialised form of machine learning

Mark points

  • Uses artificial neural network(s)
  • … that contain(s) a high number of hidden layers
  • … modelled on the human brain
  • Deep learning uses many layers to progressively extract higher level features from the (raw) input
  • Deep learning is a specialised form of machine learning

Part 9(b) — solution

  1. Deep learning makes good use of unstructured data
  2. Deep learning outperforms other methods if the data size is large
  3. Deep learning systems enable machines to process data with a nonlinear approach
  4. Deep learning is effective at identifying (hidden) patterns / patterns that humans might not be able to see / patterns that
  5. It can provide a more accurate outcome with higher numbers of hidden layers

Mark points

  • Deep learning makes good use of unstructured data
  • Deep learning outperforms other methods if the data size is large
  • Deep learning systems enable machines to process data with a nonlinear approach
  • Deep learning is effective at identifying (hidden) patterns / patterns that humans might not be able to see / patterns that
  • It can provide a more accurate outcome with higher numbers of hidden layers

Question 10

Paper page 9 for Q10
Original paper page 9

Part 10(a) — solution

Two marks for all five rows correct 2 One mark for four rows correct Statement RISC CISC uses a smaller instruction set ✓ uses single-cycle instructions and limited addressing modes ✓ uses fewer general-purpose registers ✓ uses both hardwired and micro coded control unit ✓ uses a system where cache is split between data and ✓ instructions 2022 Page 11 of 15 9618/33 Cambridge International AS & A Level – Mark Scheme October/November 2022

Mark points

  • Include the ideas shown in the solution above.

Part 10(b) — solution

  1. Instructions are divided into subtasks / 5 stages
  2. … Instruction fetch / IF, Instruction decode / ID, operand fetch / OF, opcode/instruction execute IE, result store / write
  3. Each subtask is completed during one clock cycle
  4. No two instructions can execute their same stage at the same clock cycle
  5. The second instruction begins in the second clock cycle, while the first instruction has moved on to its second subtask
  6. The third instruction begins in the third clock cycle while the first and second instructions move on to their second and

Mark points

  • Instructions are divided into subtasks / 5 stages
  • … Instruction fetch / IF, Instruction decode / ID, operand fetch / OF, opcode/instruction execute IE, result store / write
  • Each subtask is completed during one clock cycle
  • No two instructions can execute their same stage at the same clock cycle
  • The second instruction begins in the second clock cycle, while the first instruction has moved on to its second subtask
  • The third instruction begins in the third clock cycle while the first and second instructions move on to their second and

Question 11

Paper page 10 for Q11
Original paper page 10

Part 11(a) — solution

  1. Instance – an occurrence of an object // a specific object based on the class // an instantiation of a class
  2. Inheritance – the capability of defining a new class of objects that has all the attributes and methods from a parent
  3. Polymorphism – allows the same method to take on different behaviours depending on which class is instantiated //

Mark points

  • Instance – an occurrence of an object // a specific object based on the class // an instantiation of a class
  • Inheritance – the capability of defining a new class of objects that has all the attributes and methods from a parent
  • Polymorphism – allows the same method to take on different behaviours depending on which class is instantiated //

Part 11(b) — solution

  1. Car and ENDCLASS
  2. Four declarations – must use the identifiers used in the assignments
  3. Constructor header – must use CarBodyType
  4. Two assignments – must use CarMake
  5. Constructor identifier for the car model and the identifier in the Model assignment statement match

Mark points

  • Car and ENDCLASS
  • Four declarations – must use the identifiers used in the assignments
  • Constructor header – must use CarBodyType
  • Two assignments – must use CarMake
  • Constructor identifier for the car model and the identifier in the Model assignment statement match

Question 12

Paper page 11 for Q12
Original paper page 11

Part 12(a) — solution

  1. Initialisation of upper bound
  2. Test if upper bound is less than lower bound
  3. Re-setting of mid value if current value is lower than the target
  4. Re-setting of mid value if current value is higher than the target
  5. Finding the value
  6. Correct termination of loop

Mark points

  • Initialisation of upper bound
  • Test if upper bound is less than lower bound
  • Re-setting of mid value if current value is lower than the target
  • Re-setting of mid value if current value is higher than the target
  • Finding the value
  • Correct termination of loop

Part 12(b)(i) — solution

O(n) 1 2022 Page 14 of 15 9618/33 Cambridge International AS & A Level – Mark Scheme October/November 2022

Mark points

  • Include the ideas shown in the solution above.

Part 12(b)(ii) — solution

  1. O(log n) is a time complexity that uses logarithmic time
  2. The time taken goes up linearly as the number of items rises exponentially
  3. O(log n) is the worst case scenario (time complexity for a binary search)

Mark points

  • O(log n) is a time complexity that uses logarithmic time
  • The time taken goes up linearly as the number of items rises exponentially
  • O(log n) is the worst case scenario (time complexity for a binary search)