Representing algorithms

EasyMediumHard
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
Question 38
Easy

Complete the trace table for the algorithm shown in Figure 1 when the initial value of multiplier is 2.

Figure 1

sum ← 1
FOR count ← 1 TO 3
    sum ← sum * multiplier
ENDFOR

You may not need to use all rows of the trace table.

multipliercountsum
21
[2]

Representing algorithms Questions

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