Which value input by the user would result in "Accept" being output by the algorithm in Figure 1?
Figure 1
1 val ← USERINPUT
2 IF NOT(val >= 5) OR val > 30 THEN
3 OUTPUT "Reject"
4 ELSEIF val >= 5 AND val < 18 THEN
5 OUTPUT "Pending"
6 ELSEIF val MOD 4 = 0 THEN
7 OUTPUT "Accept"
8 ELSE
9 OUTPUT "Review"
10 ENDIF
3
16
20
32
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.