Question 6 2022 · October-November · Paper 22 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 6
Question 5
Question 1
Question 97
Question 2
Question 8
Question 76
Question 7
Question 6
Question 3
Question 4
Question 6
Question 6
Question 6
Question 5
Question 6
Question 42
Question 7
Question 1
Question 24
Question 2
Question 4
Question 8
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
Question 12
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
