Note AcademyNote Academy

Computer Science (AS & A Level) · Oct / Nov 2024 · Paper 23 · Question 3

9618

As printed in the paper

The question as text

The implementation of a linked list uses an integer variable and a 1D array List of type Node. Record type Node is declared in pseudocode as follows: TYPE Node DECLARE Data : STRING DECLARE Pointer : INTEGER ENDTYPE The array List is declared in pseudocode as follows: DECLARE List : ARRAY[1:200] OF Node The linked list will operate as follows: • Integer variable HeadPointer will store the array index for the first node in the linked list. • The Pointer field of a node contains the index value of the next array element (the next node) in the linked list. • The value 0 is used as a null pointer.

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme
  • 3(a)(i)[1]

  • 3(a)(ii)[1]

  • 3(b)[4]

  • 3(c)[4]

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.