Computer Science · Oct / Nov 2022 · Paper 1 SL · Question 8
Adapt for 2027Tracing a loop over an array is taught, but the old IB pseudocode should be rewritten in Python or Java.
IBCS
As printed in the paper
The question as text
8. Given the one-dimensional array NAMES: [0] Zixan [1] Murali [2] Eli [3] Kim construct a trace table for the following algorithm: K=3 loop while K>=0 A=K mod 3 output (NAMES[A]) K=K-1 end while [4]
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

