Note AcademyNote Academy

Computer Science (AS & A Level) · Oct / Nov 2023 · Paper 22 · Question 4

9618

As printed in the paper

The question as text

A procedure Count() will: 1. input a value (all values will be positive integers) 2. count the number of odd values and count the number of even values 3. repeat from step 1 until the value input is 99 4. output the two count values, with a suitable message. The value 99 must not be counted.

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

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

  • 4(b)[3]

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