Question 3(b) 2024 · May-June · Paper 21 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 3
Part (b)
Question 5
Show text version of question
Question 3
Part (b)
Question 3
The diagram shows an Abstract Data Type (ADT) representation of a linked list after data items
have been added.
- PS is the start pointer.
- PF is the free list pointer.
- Labels Df, Dc, Db and Dy represent the data items of nodes in the list.
- Labels Fg, Fh, Fm and Fw represent the data items of nodes in the free list.
- The symbol Ø represents a null pointer.
PS Df Dc Db Dy Ø
PF Fg Fh Fm Fw Ø
Part (b)
A program will be written to include a linked list to store alphanumeric user IDs.
The design uses two variables and two 1D arrays to implement the linked list. Each array element contains data of a single data type and not a record.
The statements below describe the design.
Complete the statements.
The two variables will be of type ............................................................................................. .
The two variables will be used as ....................................................................... to the arrays.
The values stored in the two variables will indicate ..................................................................
................................................................................................................................................. .
The first 1D array will be of type ............................................................................................. .
The first 1D array will be used to ............................................................................................ .
The second 1D array will be of type ....................................................................................... .
The second 1D array will be used to ...................................................................................... .
Question 8
Why this question appears here
76% assigned-topic match · Data types and structures › Arrays
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_s24_qp_21.pdf
