Past-paper question · 2020 October-November · Paper 23 · Q4(b)

Question 4(b) 2020 · October-November · Paper 23 · 2 marks

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

Official answer for Question 4

Part (b)

✓
Any two from:

Question 2

✓
Checking if the remainder, when the larger number is divided by the smaller
✓
number, is zero
✓
To see if the larger number is a multiple of the smaller number
✓
To see if the smaller number is a factor of the larger number
✓
2210/23
✓
Cambridge O Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2020
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_w20_ms_23.pdf →

Show text version of question

Question 4

Part (b)

Question 4

This flowchart represents an algorithm that allows the input of two numbers and performs a

calculation.

The predefined function MOD finds the remainder from integer division for example X 8 MOD 5 gives X a value of 3.

START

INPUT Y,Z

IS Yes Y = 0? END

No

IS Yes Y > Z? A Y MOD Z

No

A
Z MOD Y

OUTPUT Yes IS "Valid" A = 0?

No

OUTPUT "Invalid"

Question 13

Part (b)

Explain the purpose of this algorithm.

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

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

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

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

[2]

Question 14

Topic relevance

Why this question appears here

99% assigned-topic match · Programming › Programming concepts

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 2210_w20_qp_23.pdf

Keep practising this topic