Study the algorithm shown in Figure 1.
1 tempReadings ← [18.5, 20.1, 24.6, 19.0]
2 errorDetected ← false
3 index ← 0
4 WHILE index < 4 AND errorDetected = false
5 IF tempReadings[index] > 24.0 THEN
6 errorDetected ← true
7 ELSE
8 index ← index + 1
9 ENDIF
10 ENDWHILE
State the data type of the variable errorDetected in the algorithm.
Practise AQA GCSE Computer Science Data types with exam-style questions for GCSE Computer Science. 50 questions, matched to the AQA GCSE Computer Science (8525) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.