Note AcademyNote Academy

Computer Science · May / June 2021 · Paper 21 · Question 5

2210

As printed in the paper

The question as text

The flowchart represents an algorithm. The algorithm will terminate if –1 is entered. START INPUT Value END OUTPUT "Accept: Normal" OUTPUT "Accept: Extreme" Diff1 100 – Value Diff2 Value – 50 No IS Diff1 < 1 OR Diff2 < 1 ? IS Value = –1 ? OUTPUT "Reject: Abnormal" No No Yes Yes Yes IS Value >= 50 AND Value <= 100 ?

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

Show the answer and mark scheme
  • 5(a)[4]

  • 5(b)[2]

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