A user inputs an integer value into the algorithm in Figure 1.
1 val ← USERINPUT
2 IF val < 5 OR NOT(val < 30) THEN
3 OUTPUT "Out of bounds"
4 ELSEIF val >= 5 AND val <= 15 THEN
5 OUTPUT "Low"
6 ELSEIF val MOD 4 = 0 THEN
7 OUTPUT "Multiple"
8 ELSE
9 OUTPUT "Uncategorised"
10 ENDIF
Figure 1
State one integer value that the user could input that would result in an output of "Uncategorised".
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.