ExamBank Scot · AH Computing Science question bank · All AH Computing Science questions

AH Computing Science 2024 Question 1

1 mark · Binary search

State the comparisons needed to locate Sycamore using a binary search on the following alphabetically sorted list: Beech, Birch, Cedar, Oak, Sycamore, Willow, Yew

Marking scheme

Compare with Oak. Compare with Willow. Compare with Sycamore. 1 mark for all comparisons correct.

Previous question: AH Computing Science 2023 Question 10

Next question: AH Computing Science 2024 Question 2