1 names <- ["Alice", "Bob", "Charlie", "Diana"]
2 itemFound <- false
3 target <- "Charlie"
4 i <- 0
5 WHILE i < 4 AND itemFound = false
6 IF names[i] = target THEN
7 itemFound <- true
8 ENDIF
9 i <- i + 1
10 ENDWHILE
The identifier itemFound is used in the searching algorithm shown in Figure 1.
Explain why itemFound is a better choice of identifier than using the single letter f.
298 exam-style questions on AQA GCSE Computer Science Programming concepts. Each one has a worked solution and a mark scheme showing where the marks go.