Skip to content

Course home

Representing algorithms

Representing algorithms

EasyMediumHard
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
Question 69

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".

[1]
Markscheme

Representing algorithms Questions

  1. GCSE
  2. /Computer Science
  3. /Representing algorithms

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.

Question bank