Question 1(a) 2021 · May-June · Paper 42 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (a)
Question 1
mark per bullet point
Question 2
- Declaring record/class with name node…
- …declaring data and next node (both as Integers)
Show text version of question
Question 1
Part (a)
Question 1
An unordered linked list uses a 1D array to store the data.
Each item in the linked list is of a record type, node, with a field data and a field nextNode.
The current contents of the linked list are:
startPointer 0 Index data nextNode 0 1 1 emptyList 5 1 5 4 2 6 7 3 7 -1 4 2 2 5 0 6 6 0 8 7 56 3 8 0 9 9 0 -1
Part (a)
The following is pseudocode for the record type node.
TYPE node
DECLARE data : INTEGER
DECLARE nextNode : INTEGER
ENDTYPE
Write program code to declare the record type node.
Save your program as question1.
Copy and paste the program code into part 1(a) in the evidence document.
Question 3
Why this question appears here
71% assigned-topic match · Data types and structures › Data types and records
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9618_s21_qp_42.pdf
