Past-paper question · 2022 October-November · Paper 22 · Q6

Question 6 2022 · October-November · Paper 22 · 5 marks

Original past-paper question for 6
Original past-paper question for 6
Reveal official mark-scheme answer Official mark-scheme answer for 6

Official answer for Question 6

✓
One mark per mark point, max five

Question 5

✓
MP1
✓
correct Counter and Number columns
✓
MP2
✓
correct Hundreds column
✓
MP3
✓
correct Temp and Tens columns
✓
MP4
✓
correct Units column
✓
MP5
✓
correct OUTPUT column
✓
Counter
✓
Number Hundreds
✓
Temp
✓
Tens
✓
Units
✓
OUTPUT
✓
0

Question 1

Question 97

Question 2

✓
876

Question 8

Question 76

Question 7

Question 6

✓
Hundreds: 8 Tens: 7
✓
Units: 6

Question 3

✓
4320

Question 4

✓
606

Question 6

Question 6

✓
0

Question 6

✓
Hundreds: 6 Tens: 0
✓
Units: 6

Question 5

✓
9875

Question 6

Question 42

Question 7

✓
124

Question 1

Question 24

Question 2

Question 4

✓
Hundreds: 1 Tens: 2
✓
Units: 4

Question 8

✓
Cambridge O Level – Mark Scheme
✓
2210/22
✓
October/November 2022
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_w22_ms_22.pdf →

Show text version of question

Question 6

This flowchart represents an algorithm to divide three-digit numbers into hundreds, tens and units.

The pre-defined function DIV gives the value of the result of integer division, for example Y = 9 DIV 4 gives the value Y = 2

The pre-defined function MOD gives the value of the remainder of integer division, for example R = 9 MOD 4 gives the value R = 1

START

Counter 0

Counter Counter + 1

Yes IS Counter > 7?

No

INPUT Number

IS Yes Number < 100?

No

IS Yes Number > 999?

No

Hundreds Number DIV 100

Temp Number MOD 100

Tens Temp DIV 10

Units Number MOD 10 STOP

OUTPUT "Hundreds: ", Hundreds, " Tens: ", Tens, " Units: ", Units

Question 11

Complete the trace table for the algorithm using this input data:

Counter Number Hundreds Temp Tens Units OUTPUT

[5]

Question 12

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

Keep practising this topic