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 [Flowchart showing START, Counter initialization (Counter ← 0), loop (Counter ← Counter + 1, IS Counter > 7? Yes/No), INPUT Number, validation for 3-digit number (IS Number < 100?, IS Number > 999?), calculations for Hundreds (Number DIV 100), Temp (Number MOD 100), Tens (Temp DIV 10), Units (Number MOD 10), OUTPUT results, STOP] Complete the trace table for the algorithm using this input data: Input data: 97, 876, 4320, 606, 9875, 42, 124 Trace Table Header: Counter | Number | Hundreds | Temp | Tens | Units | OUTPUT --------|--------|----------|------|------|-------|--------
- 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 [Flowchart showing START, Counter initialization (Counter ← 0), loop (Counter ← Counter + 1, IS Counter > 7? Yes/No), INPUT Number, validation for 3-digit number (IS Number < 100?, IS Number > 999?), calculations for Hundreds (Number DIV 100), Temp (Number MOD 100), Tens (Temp DIV 10), Units (Number MOD 10), OUTPUT results, STOP] Complete the trace table for the algorithm using this input data: Input data: 97, 876, 4320, 606, 9875, 42, 124 Trace Table Header: Counter | Number | Hundreds | Temp | Tens | Units | OUTPUT --------|--------|----------|------|------|-------|--------[5]
This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.
Mark scheme
Marking points from the official mark scheme (Oct/Nov 2022). The mark or mark type is shown in brackets.
- [1] MP1 correct Counter and Number columns
- [1] MP2 correct Hundreds column
- [1] MP3 correct Temp and Tens columns
- [1] MP4 correct Units column
- [1] MP5 correct OUTPUT column
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →