Select one option to show which programming technique is used on line 3 of the algorithm in Figure 1.
Figure 1
1 OUTPUT 'Enter your age:'
2 age ← USERINPUT
3 IF age < 18 THEN
4 OUTPUT 'Child ticket assigned'
5 ticket_price ← 5
6 ELSE
7 OUTPUT 'Are you a student?'
8 is_student ← USERINPUT
9 IF is_student = 'yes' THEN
10 OUTPUT 'Student ticket assigned'
11 ticket_price ← 8
12 ELSE
13 OUTPUT 'Standard ticket assigned'
14 ticket_price ← 12
15 ENDIF
16 ENDIF
Assignment
Iteration
Selection
Sequence
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.