User interface language: English | Español

Date November 2019 Marks available 3 Reference code 19N.1.HL.TZ0.5
Level HL Paper 1 Time zone no time zone
Command term Sketch Question number 5 Adapted from N/A

Question

Sketch a double linked list that holds the following sequence of names: Anne, Lana, Mary.

Markscheme

Award [3 max]
Award [1] for showing that every node in a double linked list contains three fields (data and 2 pointers);
Award [1] for showing every node has link to its previous node and next node/can be traversed forward by using next field and can be traversed backward by using previous field;
Award [1] for showing that the first node must be always pointed by an external pointer (for example head) (and the last node could be pointed to by an external pointer (for example rear));
Award [1] for showing that the previous field of the first node must be NULL and the next field of the last node must be NULL.

Examiners report

Most candidates sketched a doubly linked list and answered this question reasonably well.

Only a few candidates did not attempt this question.

Syllabus sections

Topic 5: Abstract data structures » 5.1 Abstract data structures
Show 80 related questions
Topic 5: Abstract data structures

View options