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

Mark points

  • Include the ideas shown in the solution above.

Part 0 — solution

0 1 Red 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

  1. correct answer
  2. statement regarding number losing precision/rounding error
  3. number converted to binary 201.125 = 11001001.001
  4. use of the exponent e.g. moving the binary point 8 places /  28

Mark points

  • correct answer
  • statement regarding number losing precision/rounding error
  • number converted to binary 201.125 = 11001001.001
  • use of the exponent e.g. moving the binary point 8 places /  28

Part 1(b) — solution

  1. application of exponent to go from 1.010110011 to 101011.0011 // x 25 // movement of binary point 5 places seen
  2. –32 + 8 + 2 + 1 + .125 + .0625 // –32 + 8 + 2 + 1 + 1/8 + 1/16 seen
  3. –20.8125 //
  4. 2013/16

Mark points

  • application of exponent to go from 1.010110011 to 101011.0011 // x 25 // movement of binary point 5 places seen
  • –32 + 8 + 2 + 1 + .125 + .0625 // –32 + 8 + 2 + 1 + 1/8 + 1/16 seen
  • –20.8125 //
  • 2013/16

Question 2

Part 2 — solution

One mark per mark point (Max 4) 4 MP1 low number of instruction formats //low number of instruction sets MP2 uses single-clock cycle instructions MP3 uses fixed length instructions MP4 uses many general-purpose registers MP5 works well with pipelining MP6 hard-wired control unit MP7 makes extensive use of RAM MP8 uses a low number of addressing modes MP9 the design emphasis is on the software.

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 dedicated circuit / channel is required MP2 The circuit is established before the transmission begins MP3 The circuit lasts for the whole of the transmission // The circuit is closed at the end of the transmission MP4 Data travels in a continuous stream along the same route MP5 Transmission is usually bidirectional. University Press & Assessment 2024 Page 5 of 17 9618/33 Cambridge International AS & A Level – Mark Scheme October/November 2024

Mark points

  • Include the ideas shown in the solution above.

Part 3(b) — solution

One mark for a benefit (Max 1) 2 MP1 No need for data to be reassembled // data / frames arrive in the same order in which they were sent MP2 Suitable for real time transmission // fast data transfer rate MP3 The whole of the bandwidth is available One mark for a drawback (Max 1) MP4 No other transmission can use the same circuit when it is in use // Bandwidth can be wasted as it cannot be used by other messages MP5 Not secure // Can be intercepted as all data travelling along the same route MP6 If there is a problem with the route the transmission ends // No other route is available without first doing the setup MP7 The circuit is always there whether or not it’s being used MP8 Can take time to set up before transmission starts.

Mark points

  • Include the ideas shown in the solution above.

Question 4

Paper page 4 for Q4
Original paper page 4

Part 4 — solution

One mark per mark point (Max 4) 4 MP1 Each layer can only accept input from the next higher layer or the next lower layer MP2 There is an interface between the adjacent layers which is the only interaction between layers MP3 Data is added to the headers as the frames/packets pass through the layers MP4 The interactions are carried out by installed software MP5 User interaction takes place at the highest/Application layer of the stack through protocols associated with that layer of the stack MP6 Direct access to hardware takes place at the lowest/Link layer of the stack. University Press & Assessment 2024 Page 6 of 17 9618/33 Cambridge International AS & A Level – Mark Scheme October/November 2024

Mark points

  • Include the ideas shown in the solution above.

Question 5

Paper page 4 for Q5
Original paper page 4

Part 5(a) — solution

One mark per mark point (Max 3) 3 MP1 A hashing algorithm is used in direct access methods on random and sequential files MP2 It is a mathematical formula MP3 … used to perform a calculation applied to the key field of the record being searched / stored MP4 The result of the calculation gives the address where the record should be found / stored.

Mark points

  • Include the ideas shown in the solution above.

Part 5(b) — solution

One mark per mark point (Max 2) 2 MP1 The record is stored in the next free memory space after the one identified by the hashing algorithm // Use linear progression MP2 An overflow area is set up and the record is stored in the next free memory space in the overflow area.

Mark points

  • Include the ideas shown in the solution above.

Part 5 — solution

  1. 1 Indigo -1

Mark points

  • 1 Indigo -1

Question 6

Part 6(a) — solution

One mark per mark point (Max 3) 3 MP1 A set user-defined data type is a composite data type MP2 … which includes a list of unordered elements MP3 Set theory operations, such as intersection and union, can be applied to these elements MP4 A set data type includes the type of data/data type it uses as part of its definition MP5 All the elements are of the same data type. University Press & Assessment 2024 Page 7 of 17 9618/33 Cambridge International AS & A Level – Mark Scheme October/November 2024

Mark points

  • Include the ideas shown in the solution above.

Part 6(b) — solution

  1. MP1 TYPE SymbolSet/Operators =
  2. TYPE SymbolSet = SET OF CHAR
  3. TYPE Operators = SET OF CHAR

Mark points

  • MP1 TYPE SymbolSet/Operators =
  • TYPE SymbolSet = SET OF CHAR
  • TYPE Operators = SET OF CHAR

Part 6 — solution

  1. 1 Violet -1

Mark points

  • 1 Violet -1

Question 7

Paper page 6 for Q7
Original paper page 6

Part 7(a) — solution

  1. (T =) 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

  • (T =) 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 7(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 7(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 7(d)(i) — 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 7(d)(ii) — solution

  1. (T =) D. (A. B)

Mark points

  • (T =) D. (A. B)

Question 8

Paper page 8 for Q8
Original paper page 8

Part 8(a) — solution

One mark per mark point (Max 4) 4 MP1 In segmented memory, the logical / virtual address space is broken into varying sized blocks called segments / sections. MP2 Each segment has a name and size. MP3 During execution segments from logical / virtual memory are loaded into physical memory. MP4 The address is specified by the user MP5 … it contains the segment name and offset value. MP6 Segments are numbered MP7 … and this number is used as an index in the segment map table. MP8 The offset value determines the size of the segment. MP9 A segment map table maps logical / virtual addresses to physical addresses / contains the segment number and offset. University Press & Assessment 2024 Page 10 of 17 9618/33 Cambridge International AS & A Level – Mark Scheme October/November 2024

Mark points

  • Include the ideas shown in the solution above.

Part 8(b) — solution

One mark per mark point (Max 3) 3 MP1 Disk thrashing is a problem that may occur when virtual memory is being used. MP2 As the main memory fills up, more and more pages need to be swapped in and out of virtual memory. MP3 This swapping leads to a very high rate of hard disk access / excessive disk head movements. MP4 Moving a hard disk read/write head takes a relatively long time / long latency time. MP5 Eventually, more time is spent swapping pages than processing data thrash point, which can cause the program to freeze or not run. University Press & Assessment 2024 Page 11 of 17 9618/33 Cambridge International AS & A Level – Mark Scheme October/November 2024

Mark points

  • Include the ideas shown in the solution above.

Question 9

Part 9(a) — solution

To ensure that the attributes are only accessible using the class’s own methods/within the class. 1

Mark points

  • Include the ideas shown in the solution above.

Part 9(b) — solution

One mark per mark point (Max 5) 5 MP1 Two correct attributes with sensible names and correct data types. MP2 Constructor present. MP3 Two correct setters with exact names and appropriate parameters and data types. MP4 Two correct getters with appropriate names. MP5 Name assigned to pet name getter matches the attribute. Pet PetID : STRING PetType : STRING OwnerTelephone : STRING DateRegistered : DATE PetName : STRING OwnerName : STRING Constructor() SetPetID(APetID : STRING) SetDateRegistered(RegDate : DATE) GetPetName() GetOwnerTelephone() University Press & Assessment 2024 Page 12 of 17 9618/33 Cambridge International AS & A Level – Mark Scheme October/November 2024

Mark points

  • Include the ideas shown in the solution above.

Question 10

Paper page 10 for Q10
Original paper page 10

Part 10(a) — solution

  1. <operator> ::= + | – | * | /
  2. <label> ::= <letter><digit>|<letter><digit><digit>
  3. <equation> ::= <label> =
  4. <label><operator><label>

Mark points

  • <operator> ::= + | – | * | /
  • <label> ::= <letter><digit>|<letter><digit><digit>
  • <equation> ::= <label> =
  • <label><operator><label>

Part 10(b)(i) — solution

One mark per mark point (Max 3) 3 MP1 begin with either a letter or a symbol MP2 end with either one or two symbols MP3 digit and all other connections and label correct. password letter digit symbol symbol symbol University Press & Assessment 2024 Page 13 of 17 9618/33 Cambridge International AS & A Level – Mark Scheme October/November 2024

Mark points

  • Include the ideas shown in the solution above.

Part 10(b)(ii) — solution

  1. <password> ::= <letter><digit><symbol>|
  2. <letter><digit><symbol><symbol>|<symbol><digit><symbol>|
  3. All three lines correct
  4. Any two lines correct

Mark points

  • <password> ::= <letter><digit><symbol>|
  • <letter><digit><symbol><symbol>|<symbol><digit><symbol>|
  • All three lines correct
  • Any two lines correct

Question 11

Paper page 12 for Q11
Original paper page 12

Part 11(a) — solution

  1. 1 Blue -1 Orange -1
  2. 1 Indigo -1
  3. 1 Violet -1

Mark points

  • 1 Blue -1 Orange -1
  • 1 Indigo -1
  • 1 Violet -1

Part 11(b) — solution

One mark per mark point (Max 4) 4 MP1 Correct Red and Green rows MP2 Correct Yellow and Blue rows MP3 Correct Orange, Indigo and Violet rows MP4 Correct FreePtr with blank row 7 RootPt RightPt Index LeftPtr Data r r

Mark points

  • Include the ideas shown in the solution above.

Part 11(c) — solution

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

Mark points

  • Include the ideas shown in the solution above.