Skip to content

Course home

Algorithms

Algorithms

EasyMedium
123456789101112131415161718
Question 17

A programmer is using an array to store the names of cities visited on a tour:

Figure 1

Index01234567
CityTorontoCairoMumbaiAthensBerlinLondonSydneyMunich

Explain why a binary search algorithm would fail to find 'Cairo' in this array.

[4]
Markscheme

Algorithms Questions

  1. IGCSE
  2. /Computer Science
  3. /Algorithms

45 exam-style questions on Edexcel IGCSE Computer Science Algorithms. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank