Note AcademyNote Academy

Computer Science · May / June 2026 · Paper 22 · Question 6

2210

As printed in the paper

The question as text

This flowchart represents an algorithm. Count INPUT Word START Yes No No No Yes Yes STOP 0 Count Count + 1 WordLength LENGTH (Word) NumLetter 1 NumLetter IS NumLetter = WordLength ? Is Choice = 'Y' ? IS SUBSTRING(Word, NumLetter, 1) = SUBSTRING(Word, NumLetter + 1 , 1) ? NumLetter + 1 OUTPUT Count INPUT Choice

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

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

  • 6(b)[1]

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