Figure 1 shows an algorithm written in pseudo-code.
1 price ← USERINPUT
2 discount ← 0
3 IF price > 100 THEN
4 discount ← price * 0.1
5 ENDIF
6 OUTPUT price - discount
Which line number shows where selection is first used in the algorithm in Figure 1?
Line number 1
Line number 2
Line number 3
Line number 4
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.