/en-tutor-prep-s6-ict-data-structures-practice-2/
/en-tutor-prep-s6-ict-data-structures-practice-2/
英文版
3
General Inquiry: info@TutorZone.com.hk
Office Hours: Monday to Saturday - 9:00 AM to 6:00 PM
WhatsApp Monday to Sunday - 24 hours
Hotline: +852 6828 1809
Instant Support: +852 9061 3106

S6 ICT: Data Structures – Practice Paper 2 (Advanced, 10 Questions)

S6 ICT: Data Structures – Practice Paper 2 (Advanced, 10 Questions)

  • 2026-11-05

S6 ICT: Data Structures – Practice Paper 2 (Advanced, 10 Questions)

Paper two works on operations and costs: in order traversal gives ascending keys, a four level full binary tree holds fifteen nodes, head insertion is O(1) against O(n) in the middle of an array, and a circular queue holds four items, with answers and a note each.

Quick answer In order traversal gives 20 to 80; searching 40 takes three comparisons; the height is three; level three holds four nodes; a four level full tree has fifteen nodes; head insertion is O(1) but array insertion is O(n); a circular queue from two to five holds four items; a thousand nodes average five hundred comparisons; breadth first uses a queue and depth first a stack.

01 Paper details (check answers afterwards)

Item Detail
Questions 10 questions
Suggested time about 20 minutes
Difficulty mix Foundation 2 · Intermediate 3 · Challenge 3 · Error redo 2
Chapter Chapter: S6 ICT | Data Structures: Arrays, Linked Lists, Stacks, Queues, Trees and Graphs
Level Advanced

02 Questions (10 items)

  1. FoundationInsert 50, 30, 70, 20, 40, 60, 80 into a binary search tree in that order. What is the in-order traversal?
  2. FoundationSearching the same tree for 40 visits how many nodes?
  3. IntermediateWhat is the height of this seven node tree, counting levels of nodes?
  4. IntermediateIn a full binary tree the deepest level holds four nodes. Which level is it?
  5. IntermediateHow many nodes does a full binary tree with four levels contain?
  6. ChallengeWhat is the time complexity of inserting at the head of a linked list, and of inserting in the middle of an array?
  7. ChallengeA circular queue has size eight, front at index two and rear at index five. How many items are stored?
  8. ChallengeA linear search runs on a linked list of one thousand nodes. On average how many nodes are compared?
  9. Error redoError retry: a student wrote that breadth first search is implemented with a stack. What is correct?
  10. Error redoError retry: a student wrote that inserting into the middle of an array costs O(1). What is correct?

03 Answers and one-line notes

# Answer One-line note
1 20, 30, 40, 50, 60, 70, 80. An in-order traversal of a binary search tree always returns the keys in ascending order.
2 3. The path is 50 then 30 then 40, so three comparisons are needed.
3 3. The root is level one, 30 and 70 are level two, and 20, 40, 60 and 80 are level three.
4 Level 3. Level n holds at most two to the power n minus one nodes, and two squared is four.
5 15. Two to the fourth power minus one is fifteen, that is one plus two plus four plus eight.
6 O(1) for the linked list and O(n) for the array. A linked list only rewires one pointer, while an array must shift every following element.
7 4. Counting from index two to index five covers four slots: two, three, four and five.
8 500. On average the target sits in the middle, so one thousand divided by two gives five hundred.
9 Breadth first search uses a queue; depth first search uses a stack. Breadth first search visits level by level in arrival order, while depth first search backtracks with last in first out.
10 O(n). Every element after the insertion point must shift right, which is n moves in the worst case.

04 What to do after marking

  • After marking, redo only the wrong items and write down which step went wrong (formula, unit, or misread number).
  • Repeat the same item two days later; move to the next paper only when both attempts are correct.
  • Parents only need the answer and note columns; there is no need to explain every item.

Find a tutor freeTutor Registration →

Questions and answers are written originally by the TutorZone team and are not taken from any school, publisher or examination authority paper. Every value is checked by computer.

Join as a tutor or coach — academic, music, sports, arts, STEM. Free to register. See how it works →