An industrial pressure monitoring system uses the algorithm shown in the pseudocode below to regulate a safety release valve:
1 vessel_pressure ← USERINPUT
2 IF vessel_pressure < 100 THEN
3 cycles ← 10
4 ELSE IF vessel_pressure >= 100 AND vessel_pressure <= 250 THEN
5 cycles ← 15
6 ELSE
7 cycles ← 20
8 ENDIF
9 FOR count ← 1 TO cycles
10 IF count MOD 4 = 0 THEN
11 RELEASE_VALVE()
12 ELSE IF count MOD 6 = 0 THEN
13 RELEASE_VALVE()
14 ENDIF
15 ENDFOR
Select the option that shows the exact number of times the subroutine RELEASE_VALVE would be called if the user input is 150.
333
444
555
666
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.