A monitoring system uses a sensor to measure signal frequency f f\,f as an integer. The categorization algorithm is shown below:
1 f ← USERINPUT
2 IF NOT(f > 15) AND f MOD 4 = 0 THEN
3 OUTPUT "Alert"
4 ELSEIF NOT(f >= 8) OR f > 40 THEN
5 OUTPUT "Normal"
6 ELSEIF f MOD 5 = 0 THEN
7 OUTPUT "Critical"
8 ELSE
9 OUTPUT "Warning"
10 ENDIF
Which input value for f f\,f would result in "Critical" being output by this algorithm?
444
181818
252525
454545
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.