Computer Science · Oct / Nov 2017 · Paper 1 SL · Question 7
Adapt for 2027Counting loop iterations and rewriting nested loops as a single while loop are B2.3.3, but the pseudocode must be written in Python or Java.
IBCS
As printed in the paper
The question as text
7. Consider the following algorithm, where N is a positive integer. loop for K from 1 to N loop for J from 1 to N if K = J then output K end if end loop end loop
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
7(a)[1]
7(b)[1]
7(c)[4]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

