An operator enters an integer value for the depth of an underwater drone into the algorithm shown below:
1 depth ← USERINPUT
2 IF NOT(depth > 5) OR depth > 45 THEN
3 OUTPUT "Out of Bounds"
4 ELSEIF depth > 5 AND depth < 30 THEN
5 OUTPUT "Shallow"
6 ELSEIF depth MOD 4 = 0 THEN
7 OUTPUT "Checkpoint"
8 ELSE
9 OUTPUT "Survey"
10 ENDIF
State one integer value that could be input that would result in an output of "Survey".
208 exam-style questions on AQA GCSE Computer Science Representing algorithms. Each one has a worked solution and a mark scheme showing where the marks go.