Complete the trace table for the algorithm shown in Figure 4 when the initial value of value is 20.
Figure 4
outcome ← value RIGHTSHIFT 2
outcome ← (outcome * value) - 13
value | outcome |
|---|---|
| 20 | |
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.