Note AcademyNote Academy

Computer Science · Oct / Nov 2018 · Paper 1 SL · Question 7

Adapt for 2027Tracing a while loop with a trace table is on the syllabus, but the code must be rewritten from IB pseudocode into Python or Java.

IBCS

As printed in the paper

The question as text

7. Construct a trace table for the following algorithm A = 3 B = 7 loop while B >= A A = A + 1 output(B – A) B = B - 1 end loop [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.