An algorithm is shown in Figure 1.
Figure 1
1 total ← 0
2 value ← USERINPUT
3 IF value < 10 THEN
4 OUTPUT "Invalid"
5 ELSE
6 FOR swap ← 1 TO value
7 temp ← USERINPUT
8 total ← total + temp
9 ENDFOR
10 mean ← total / value
11 IF mean > 50 THEN
12 OUTPUT "High"
13 ENDIF
14 ENDIF
Where is iteration first used in the algorithm in Figure 1?
Line number 3
Line number 6
Line number 11
Line number 14
208 exam-style questions on AQA GCSE Computer Science Representing algorithms. Each one has a worked solution and a mark scheme showing where the marks go.