Past-paper question · 2017 October-November · Paper 21 · Q2(c)

Question 2(c) 2017 · October-November · Paper 21 · 10 marks

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

Official answer for Question 2

Part (c)

✓
Mark as follows:
✓
•
✓
One mark for START and STOP / END
✓
•
✓
One mark for bracketed pair
✓
•
✓
One mark for each of other labelled boxes (shape must be correct for decision
✓
box)
✓
Decision box outputs must have two outputs and at least one label (Yes / No)
✓
Different statement categories should not appear in the same symbol (e.g. assignment
✓
and I/O)
✓
No mark for symbol (or pair) if parent missing or logically incorrect (except for
✓
START/END)
✓
Full marks should be awarded for functionally equivalent solutions.
✓
9608/21
✓
Cambridge International AS/A Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2017
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_w17_ms_21.pdf →

Show text version of question

Question 2

Part (c)

Question 2

The following pseudocode represents a simple algorithm.

DECLARE NumberFound, Remainder, Number : INTEGER DECLARE StartNumber, EndNumber, Divisor : INTEGER

INPUT StartNumber INPUT EndNumber INPUT Divisor NumberFound 0

FOR Number StartNumber TO EndNumber Remainder MODULUS(Number, Divisor) IF Remainder = 0 THEN OUTPUT Number NumberFound NumberFound + 1 ENDIF ENDFOR OUTPUT "Count: " & NumberFound

For the built-in functions list, refer to the Appendix on page 14.

Part (c)

Draw a program flowchart to represent this algorithm.

Variable declarations are not required in program flowcharts.

[10]

Question 6

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 9608_w17_qp_21.pdf

Keep practising this topic