The flowchart below inputs an integer. The predefined function DIV gives the value of the division, for example z ← 11 DIV 3 gives the value Z = 3. The predefined function MOD gives the value of the remainder, for example z ← 11 MOD 3 gives the value Z = 2.
- Trace for input value 33Complete a trace table for each of the two input values 33 and 75. Trace table for input value 33 X A B OUTPUT [2]
- Trace for input value 75Trace table for input value 75 X A B OUTPUT [2]
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 2016). The mark or mark type is shown in brackets.
- [4]
- Trace table for input value 33
- X: 33, 4
- A: 4
- B: 1
- OUTPUT: 1, 4
- (1 mark)
- (1 mark)
- Trace table for input value 75
- X: 75, 9, 1
- A: 9, 1
- B: 3, 1
- OUTPUT: 3, 1, 1
- (1 mark)
- (1 mark)
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 →