Past-paper question · 2024 May-June · Paper 21 · Q2(b)

Question 2(b) 2024 · May-June · Paper 21 · 2 marks

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

Official answer for Question 2

Part (b)

✓
One mark per point:

Question 2

Question 1

✓
A (variable of type) string will be input // by example e.g. “67,72”

Question 2

✓
A special / identified character would need to be used to separate each
✓
numeric value // all numbers are fixed length
✓
9618/21
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2024
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_s24_ms_21.pdf →

Show text version of question

Question 2

Part (b)

Question 2

An algorithm has three steps. It will:

1. repeatedly input a pair of numeric values A and B 2. count the number of pairs that are input until A has been greater than B 10 times 3. output the number of pairs that were input.

Part (b)

Step 1 of the algorithm is changed.

A
variable ThisSequence is used to enter a sequence of 10 pairs of numeric values, using

a single input statement.

Following the input of ThisSequence the revised algorithm will extract the pairs of numbers.

Describe the variable ThisSequence and how the numbers are extracted.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

[2]

Question 6

Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Programming basics

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_s24_qp_21.pdf

Keep practising this topic