Question 1(a)(ii) 2016 · May-June · Paper 41 · 2 marks
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
Show text version of question
Question 1
Part (a)
(ii)
Question 1
A linked list abstract data type (ADT) is to be used to store and organise surnames.
This will be implemented with a 1D array and a start pointer. Elements of the array consist of a user-defined type. The user-defined type consists of a data value and a link pointer.
Identifier Data type Description LinkedList RECORD User-defined type Surname STRING Surname string Ptr INTEGER Link pointers for the linked list
(ii)
The 1D array is implemented with an array SurnameList of type LinkedList.
Write the pseudocode declaration statement for SurnameList. The lower and upper bounds of the array are 1 and 5000 respectively.
.......................................................................................................................................[2]
Why this question appears here
72% 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 9608_s16_qp_41.pdf
