9618/32 · October/November 2024 · Worked solutions

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

Question 0

Part 0 — solution

0 1 25 2

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

One mark per mark point (Max 3) 3 MP1 The data to be transmitted is divided into equal sized packets MP2 A packet header is attached to each packet containing key information MP3 … such as source/destination IP addresses, packet number, etc MP4 Packets are transmitted independently MP5 … and may travel though different routes/paths to the destination MP6 Routes are determined using a routing table//Packets take the optimum route depending on congestion MP7 The packets usually arrive out of order MP8 The packets are reassembled in the correct order at the destination // The packets are re-ordered using the sequence number/the header MP9 If packets are missing/corrupted a re-transmission request is sent / packets are re-sent.

Mark points

  • Include the ideas shown in the solution above.

Part 1(b) — solution

One mark for each benefit (Max 2) 4 MP1 Packets are more likely to arrive because they can be re-routed if a problem occurs with one of the routes//Packets are more likely to arrive because if a packet is lost, it can be re-transmitted MP2 Bandwidth can be shared allowing packets from different messages to share the same path MP3 Considered secure as the packets generally travel via different routes MP4 High data transmission rate is possible One mark for each drawback (Max 2) MP5 Time delay because packets need to be re-ordered/reassembled at the destination//Time delay caused by missing packets needing to be re-sent//Time delay because it has to share the bandwidth of the circuit / channel with other packets MP6 Requires a complex algorithm to function MP7 Needs lots of RAM to handle large amounts of data. University Press & Assessment 2024 Page 4 of 15 9618/32 Cambridge International AS & A Level – Mark Scheme October/November 2024

Mark points

  • Include the ideas shown in the solution above.

Part 1 — solution

  1. number converted to binary e.g., positive binary version of 49.1875 = 0110001.0011 //
  2. 64 + 8 + 4 + 2 + .5 + .25 + .0625 //
  3. 64 + 14.8125
  4. use of the exponent e.g. moving the binary point 6 places /  26

Mark points

  • number converted to binary e.g., positive binary version of 49.1875 = 0110001.0011 //
  • 64 + 8 + 4 + 2 + .5 + .25 + .0625 //
  • 64 + 14.8125
  • use of the exponent e.g. moving the binary point 6 places /  26

Question 2

Paper page 2 for Q2
Original paper page 2

Part 2(a) — solution

One mark per mark point (Max 2) 2 MP1 Records are stored one after the other as they are collected // records are stored in chronological order MP2 New records are appended to the end of the file.

Mark points

  • Include the ideas shown in the solution above.

Part 2(b) — solution

One mark for a use (Max 1) 1 MP1 Creating unsorted / temporary transaction files MP2 Creating data logging files

Mark points

  • Include the ideas shown in the solution above.

Question 3

Part 3(a) — solution

One mark per mark point (Max 3) 3 MP1 A user-defined record data type is a composite data type MP2 It uses other data types in its definition to form a single new data type MP3 The data types referenced may be primitive data types from a programming language or they may be other user- defined data types. MP4 Includes related items MP5 Includes a fixed number of items.

Mark points

  • Include the ideas shown in the solution above.

Part 3(b) — solution

One mark for TYPE Order and ENDTYPE correct 4 One mark for correct use of DECLARE in all declarations seen One mark for the two shaded declarations One mark for the two unshaded declarations Example answer TYPE Order DECLARE AccountNumber : INTEGER DECLARE OrderNumber : INTEGER DECLARE OrderPrice : REAL DECLARE OrderDate : DATE ENDTYPE University Press & Assessment 2024 Page 5 of 15 9618/32 Cambridge International AS & A Level – Mark Scheme October/November 2024

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

  1. application of exponent to mantissa to go from 0.10001110111 to 01000111.0111 //

Mark points

  • application of exponent to mantissa to go from 0.10001110111 to 01000111.0111 //

Part 4(b) — solution

  1. correct mantissa – exact answer only
  2. correct exponent – exact answer only

Mark points

  • correct mantissa – exact answer only
  • correct exponent – exact answer only

Question 5

Part 5(a) — solution

One mark for each correct name (Max 2) 4 One mark for each correct corresponding expansion (Max 2) MP1 HTTP/HTTPS MP2 For sending and receiving / transferring web pages / hypertext MP3 FTP MP4 For sending and receiving files over a network / between devices MP5 POP3 MP6 Pull protocol / for receiving / downloading emails MP7 IMAP MP8 Pull protocol / for receiving / downloading emails MP9 SMTP MP10 Push protocol / for sending / uploading emails MP11 BitTorrent MP12 Peer-to-peer file sharing over a network

Mark points

  • Include the ideas shown in the solution above.

Part 5(b) — solution

One mark per mark point (Max 3) 3 MP1 The application layer provides access to all the programs that exchange data // Interacts directly with user. MP2 … used by, for example, web browsers, server software. MP3 Communicates/enables data transfer to/from Transport layer // It allows applications to access the services used in other TCP/IP layers. MP4 It defines the protocols that any application uses to allow the exchange of data. University Press & Assessment 2024 Page 7 of 15 9618/32 Cambridge International AS & A Level – Mark Scheme October/November 2024

Mark points

  • Include the ideas shown in the solution above.

Part 5 — solution

7 64 -1 FreePt

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

  1. (X =) A. B. C. D + A. B. C. D + A. B. C. D. + A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D

Mark points

  • (X =) A. B. C. D + A. B. C. D + A. B. C. D. + A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D

Part 6(b) — solution

Answer: AB

Two marks if no errors present 2 One mark if one error present AB CD 00 01 11 10

Mark points

  • Correct result: AB

Part 6(c) — solution

Answer: AB

One mark for each correct loop (Max 2) 2 AB CD 00 01 11 10

Mark points

  • Correct result: AB

Part 6(d) — solution

  1. (X =) C. D + C. D // C. D. + C. D

Mark points

  • (X =) C. D + C. D // C. D. + C. D

Part 6 — solution

  1. 1 9 -1

Mark points

  • 1 9 -1

Question 7

Paper page 8 for Q7
Original paper page 8

Part 7(a) — solution

One mark per mark point (Max 2) 2 MP1 21 - a number must begin with an odd digit, 2 is even MP2 123 - a number can only be one or two digits in length not three

Mark points

  • Include the ideas shown in the solution above.

Part 7(b) — solution

  1. MP1 <symbol> ::= % | £ | # | @ | $
  2. MP2 <number> ::= <odd>|<odd><even>|<odd><odd>

Mark points

  • MP1 <symbol> ::= % | £ | # | @ | $
  • MP2 <number> ::= <odd>|<odd><even>|<odd><odd>

Part 7(c)(i) — solution

One mark per mark point (Max 3) 3 MP1 letter, number and symbol all included in correct order: letter first, followed by number, finishing with symbol MP2 provision for one or two numbers including relevant connectors MP3 all other connections and label correct and no additional data Example answer code letter number number symbol University Press & Assessment 2024 Page 9 of 15 9618/32 Cambridge International AS & A Level – Mark Scheme October/November 2024

Mark points

  • Include the ideas shown in the solution above.

Part 7(c)(ii) — solution

Answer: OR

  1. <code> ::= <letter><number><symbol>|
  2. <code> ::= <letter><number><number><symbol>|
  3. <digits> ::= <number>|<number><number>
  4. <code> ::= <letter><digits><symbol>

Mark points

  • <code> ::= <letter><number><symbol>|
  • <code> ::= <letter><number><number><symbol>|
  • <digits> ::= <number>|<number><number>
  • <code> ::= <letter><digits><symbol>

Question 8

Paper page 10 for Q8
Original paper page 10

Part 8 — solution

One mark per mark point (Max 4) 4 MP1 many instruction formats possible MP2 large instruction set MP3 many addressing modes available MP4 uses variable length/multi-operation instructions MP5 multi-clock cycle instructions MP6 complex decoding of instructions MP7 uses complex circuits MP8 makes frequent use of cache memory MP9 uses programmable control unit // uses micro-programmed control unit // uses hardwired control unit MP10 hardware needs to be able to handle more complex instructions convert into sub-instructions // Design emphasis is on the hardware. University Press & Assessment 2024 Page 10 of 15 9618/32 Cambridge International AS & A Level – Mark Scheme October/November 2024

Mark points

  • Include the ideas shown in the solution above.

Part 8 — solution

7 -1 49 -1

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 (Max 2) 2 MP1 the kernel receives a signal when an interrupt is generated MP2 the kernel checks the priority and reviews the status/priority of the current interrupts MP3 system enters kernel mode if the type of interrupt is of higher priority than the current process MP4 the kernel consults the interrupt dispatch table / IDT MP5 … and saves the state of the interrupted process / contents of the registers on the kernel stack MP6 the kernel restores the process state e.g. contents of registers once the interrupt is serviced

Mark points

  • Include the ideas shown in the solution above.

Part 9(b)(i) — solution

One mark per mark point (Max 1) 1 MP1 multi-tasking allows computers to carry out / seem to carry out more than one process at a time

Mark points

  • Include the ideas shown in the solution above.

Part 9(b)(ii) — solution

One mark per mark point (Max 2) 2 MP1 processor time/common hardware and resources is/are shared between tasks MP2 scheduling is used to decide on the processes to be carried out to ensure multi-tasking operates correctly / efficiently / without clashes MP3 one task of a higher priority can interrupt another task that is currently running

Mark points

  • Include the ideas shown in the solution above.

Question 10

Part 10(a) — solution

One mark per mark point (Max 3) 3 MP1 Attributes/properties … MP2 … with their data types // … are variables bound to the class MP3 Methods … MP4 … that are subroutines / functions / procedures that act upon the attributes MP5 Getters/setters … MP6 … are methods that can fetch / update the contents of attributes MP7 A constructor … MP8 … that is used to create instances / objects of this class. University Press & Assessment 2024 Page 11 of 15 9618/32 Cambridge International AS & A Level – Mark Scheme October/November 2024

Mark points

  • Include the ideas shown in the solution above.

Part 10(b) — solution

One mark per mark point (Max 3) 3 MP1 A class is only defined once but many objects can be created from that class // A class is a template / blueprint from which objects are created // An object is an instance of a class MP2 No memory is allocated when a class is defined, but objects are allocated memory space whenever they are created MP3 A class cannot be manipulated as it is not available in the memory, but objects can be manipulated MP4 A class is defined but an object is declared / created / instantiated. MP5 A class can use inheritance. An object cannot. University Press & Assessment 2024 Page 12 of 15 9618/32 Cambridge International AS & A Level – Mark Scheme October/November 2024

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 per mark point (Max 4) 4 MP1 Five additional nodes with correct data values MP2 Correct null pointers in all nodes (7) – no extra null pointers where the arrow points to the next node MP3 Correct arrows to represent pointers joining parent nodes to child nodes – must come from the correct left or right pointer not the middle MP4 All nodes in correct order and no additional data in left/right pointer boxes. RootPtr LeftPtr Data RightPtr

Mark points

  • Include the ideas shown in the solution above.

Part 11(b) — solution

First eight rows of table (Max 3) 4 Three marks for all eight correct rows Two marks for six or seven correct rows One mark for three, four or five correct rows Last row of table and FreePtr (Max 1) One mark for correct FreePtr with last row of table completely blank RootPt RightP Index LeftPtr Data r tr

Mark points

  • Include the ideas shown in the solution above.

Part 11(c) — solution

One mark for any correct row (Max 4) 4 FUNCTION SearchList(Item : INTEGER) RETURNS INTEGER NullPtr  -1 NowPtr  RootPtr WHILE NowPtr <> NullPtr IF LinkList[NowPtr].Data < Item THEN NowPtr  LinkList[NowPtr].RightPtr ELSE IF LinkList[NowPtr].Data > Item THEN NowPtr  LinkList[NowPtr].LeftPtr ELSE RETURN NowPtr ENDIF ENDIF ENDWHILE RETURN NullPtr ENDFUNCTION University Press & Assessment 2024 Page 15 of 15

Mark points

  • Include the ideas shown in the solution above.

Question 25

Part 25 — solution

  1. 1 1 -1 16 -1 64 -1
  2. 1 9 -1 -1 49 -1

Mark points

  • 1 1 -1 16 -1 64 -1
  • 1 9 -1 -1 49 -1

Question 64

Part 64 — solution

  1. 71.4375

Mark points

  • 71.4375