Past-paper question · 2025 October-November · Paper 21 · Q2

Question 2 2025 · October-November · Paper 21 · 5 marks

Original past-paper question for 2
Reveal official mark-scheme answer Official mark-scheme answer for 2

Official answer for Question 2

✓
Example solution

Question 5

✓
Mark as follows:
✓
1 Initialisation of variables used as array index and count
✓
2 Loop through exactly 30 elements in the array
✓
3 Test for empty string in current array element // Test for non-empty string
✓
4 Increment count if appropriate in a loop
✓
5 Both required outputs under correct conditions with correct outputs
✓
9618/21
✓
Cambridge International AS & A Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2025
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_w25_ms_21.pdf →

Show text version of question

Question 2

Data is a global 1D array containing 30 elements of type STRING

An algorithm will output:

  • all non-blank elements (elements that do not contain an empty string)
  • the final total of the number of elements output.

Complete the program flowchart to represent the algorithm:

START

END

[5]

* 0000800000005 * DFD

Question 5

, ,

Topic relevance

Why this question appears here

71% assigned-topic match · Algorithm design and problem-solving › Algorithms

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9618_w25_qp_21.pdf

Keep practising this topic