Note AcademyNote Academy

Computer Science · Oct / Nov 2016 · Paper 1 SL · Question 6

IBCS

As printed in the paper

The question as text

6. Consider the following algorithm that inputs X and N, and outputs P. X,N false true P=1 N>0 P P=P*X N=N-1

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme
  • 6(a)[1]

  • 6(b)[4]

  • 6(c)[1]

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.