Representing algorithms

EasyMediumHard
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
Question 29
Medium

An algorithm is represented below using pseudo-code.

1      latency ← USERINPUT
2      IF NOT(latency > 50) AND latency < 20 THEN
3          OUTPUT "Standard"
4      ELSEIF latency MOD 4 = 0 AND NOT(latency > 30) THEN
5          OUTPUT "Priority"
6      ELSEIF latency >= 20 AND latency < 40 THEN
7          OUTPUT "Express"
8      ELSEIF latency MOD 3 = 0 THEN
9          OUTPUT "Economy"
10     ELSE
11         OUTPUT "Bulk"
12     ENDIF

What will be the output from this algorithm when the user input is 24?

Shade one circle to indicate your answer.

"Standard"

"Priority"

"Express"

"Economy"

Representing algorithms Questions

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