Past-paper question · 2013 May-June · Paper 33 · Q4(a)(ii)

Question 4(a)(ii) 2013 · May-June · Paper 33 · 1 mark

Original past-paper question for 4(A)(II)
Original past-paper question for 4(A)(II)
Original past-paper question for 4(A)(II)
Reveal official mark-scheme answer Official mark-scheme answer for 4(A)(II)

Official answer for Question 4

Part (a)

(ii)

(ii)

Dynamic data structure matches size to data requirements

[1]
✓
Takes memory from heap as required //
✓
returns memory as required (following node deletion)
[1]
✓
There is no wasted memory space / makes efficient use of memory
[1]
✓
MyList[Start].Data = APPLE

Mark scheme 9691_s13_ms_33.pdf →

Show text version of question

Question 4

Part (a)

(ii)

Question 4

A linked list is implemented with an array of records of data type Node. For

Examiner's Use The Node record has two fields as defined below:

RECORD Node Data : STRING Pointer : INTEGER ENDRECORD

A
program is to create a linked list using the array and variable shown below.

Identifier Data Type Description

MyList ARRAY[100] OF Node An array to store the data and pointer values

HeadPointer INTEGER Stores the index position of the node at the head of the linked list An array is a static data structure.

(ii)

What benefit would be gained from using a dynamic data structure to implement a

linked list?

[1]

Question 11

The linked list has the following items: BEAN, COURGETTE, APPLE, PEPPER For The data is stored as shown below: Examiner's Use

HeadPointer: 3

MyList Data Pointer 1 BEAN 2

2 COURGETTE 4

3 APPLE 1

4 PEPPER 0

...

Question 99

100

Topic relevance

Why this question appears here

82% 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 9691_s13_qp_33.pdf

Keep practising this topic