User interface language: English | Español

Date November 2018 Marks available 4 Reference code 18N.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

A = 3
B = 7
loop while B >= A
A = A + 1
output(B − A)
B = B − 1
end loop

Markscheme

Award [4 max].

Award [1] for a trace table with at least three columns.
Award [1] for each correct column (out of the four columns − A, B, B >= A, output).

Examiners report

[N/A]

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