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

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

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

Official answer for Question 4

Part (a)

✓
One mark for each correct column

Question 4

✓
Y
✓
Z
✓
A
✓
OUTPUT

Question 11

Question 4

Question 3

✓
Invalid

Question 6

Question 2

✓
0
✓
Valid

Question 3

Question 9

✓
0
✓
Valid

Question 3

Question 2

Question 1

✓
Invalid

Question 2

Question 6

✓
0
✓
Valid
✓
0
✓
0

Mark scheme 2210_w20_ms_23.pdf →

Show text version of question

Question 4

Part (a)

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 (a)

Complete a trace table for this set of input data:

11, 4, 6, 2, 3, 9, 3, 2, 2, 6, 0, 0, 1, 1

Y Z A OUTPUT

[4]
Topic relevance

Why this question appears here

98% assigned-topic match · Algorithm design and problem-solving

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