1 mode ← USERINPUT
2 IF mode = 'quick' THEN
3 cycles ← 2
4 ELSE IF mode = 'standard' THEN
5 cycles ← 3
6 ELSE IF mode = 'deep' THEN
7 cycles ← 5
8 ELSE
9 OUTPUT 'Unknown mode'
10 ENDIF
11 FOR k ← 1 TO cycles
12 IF k <= 2 THEN
13 RUN_RINSE('cold')
14 ELSE
15 RUN_RINSE('hot')
16 ENDIF
17 ENDFOR
How many times would the subroutine RUN_RINSE be called if the user input is 'standard' in Figure 2?
2 subroutine calls
3 subroutine calls
4 subroutine calls
5 subroutine calls
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.