Select one option which shows the line number where iteration is first used in the algorithm shown in Figure 1.
Figure 1
1 capacity ← 500
2 current_stock ← USERINPUT
3 IF current_stock < 100 THEN
4 order_qty ← capacity - current_stock
5 SEND_ORDER(order_qty)
6 ELSE IF current_stock < 250 THEN
7 order_qty ← 100
8 WHILE order_qty > 0
9 ADD_TO_PENDING(10)
10 order_qty ← order_qty - 10
11 IF current_stock + order_qty > capacity THEN
12 order_qty ← 0
13 ENDIF
14 ENDWHILE
15 ELSE
16 OUTPUT "Stock levels optimal"
17 ENDIF
Line number 3
Line number 8
Line number 11
Line number 16
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.