User interface language: English | Español

Date November 2019 Marks available 5 Reference code 19N.1.SL.TZ0.7
Level SL Paper 1 Time zone no time zone
Command term Construct Question number 7 Adapted from N/A

Question

Construct a trace table for the following algorithm.

K = 1
N = 1
M = 2
loop while K < 5
output(N,M)
K = K + 1
N = N + 2
M = M * 2
end loop

Markscheme

Award [5 max] as follows:
Award [1] for a trace table with at least three columns (headings K, N, M, K<5 and output);
Award [1] for each correct output up to [4 max]

Examiners report

This question was well answered with the vast majority of candidates gaining some marks, many of whom
achieved full or nearly full marks.

Syllabus sections

Topic 4: Computational thinking, problem-solving and programming » 4.2 Connecting computational thinking and program design
Show 59 related questions
Topic 4: Computational thinking, problem-solving and programming

View options