Question 2(c) 2017 · October-November · Paper 23 · 10 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (c)
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.
Question 6
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_23.pdf
