Representing algorithms

EasyMediumHard
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
Question 30
Medium

Complete the trace table for the subroutine call process(25).

You may not need to use all the rows in the table.

SUBROUTINE process(n)
  p ← n
  q ← 3
  REPEAT
    p ← p - q
    q ← q + 2
  UNTIL p < q
  OUTPUT p
ENDSUBROUTINE
npqOUTPUT
25
[4]

Representing algorithms Questions

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