An algorithm is represented using pseudo-code in Figure 1.
Figure 1
1 temp ← USERINPUT
2 target ← temp - 5
3 IF target < 10 OR target > 30 THEN
4 OUTPUT "Alert"
5 ELSEIF target >= 15 AND target <= 25 THEN
6 OUTPUT "Normal"
7 ELSE
8 OUTPUT "Standby"
9 ENDIF
Where is a logical operator first used in the algorithm in Figure 1?
Line number 2
Line number 3
Line number 5
Line number 6
19 exam-style questions on AQA GCSE Computer Science Boolean operations in a programming language. Each one has a worked solution and a mark scheme showing where the marks go.