Past-paper question · 2024 May-June · Paper 21 · Q3(b)

Question 3(b) 2024 · May-June · Paper 21 · 5 marks

Original past-paper question for 3(B)
Original past-paper question for 3(B)
Reveal official mark-scheme answer Official mark-scheme answer for 3(B)

Official answer for Question 3

Part (b)

Question 5

✓
The two variables will be of type Integer
✓
The two variables will be used as pointers / indexes to the
✓
arrays.
✓
The values stored in the two variables will indicate the first
✓
element in each list
✓
The first 1D array will be of type String
✓
The first 1D array will be used to store the values // data items
✓
// User IDs
✓
The second 1D array will be of type Integer
✓
The second 1D array will be used to store the pointers // point
✓
to next item
✓
Mark as follows:
✓
One mark for each of the first three rows
✓
One mark for both Array 1 rows
✓
One mark for both Array 2 rows
✓
9618/21
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2024
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_s24_ms_21.pdf →

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 ...................................................................................... .

[5]

Question 8

Topic relevance

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

Keep practising this topic