✦ Created by our AI question engine · answers checked by script
Self-marked 0 / 9
How this page works
Full help
- Read the question and the information above the parts.
- Write your working and your answer in the box for each part, with units, as in the exam. Press Enter for a new line.
- Check your final line with Check my answer. Use the calculator on the right when you need it.
- Mark yourself: open the markscheme and tick each mark you earned.
Ifeoma writes a flowchart for a computing club puzzle. Each time round the loop, the number $x$ is multiplied by 3 and then 4 is subtracted.
In words: input $x$. Replace $x$ with $3x - 4$. If $x > 100$, output $x$ and stop. If not, go back and replace $x$ with $3x - 4$ again.
441.1
[2]Find the output when the input is 5.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks
Model answer
5 → 11 → 29 → 83 → 245. 245 > 100, so the output is 245.
245
Mark yourself
441.2
[2]The input is 4. Write down how many times the box 'Replace $x$ with $3x - 4$' is used.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks
Model answer
4 → 8 → 20 → 56 → 164. The box is used 4 times.
4
Mark yourself
441.3
[2]The output is 113. Find the input, given that it is a positive whole number.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks
Model answer
Work backwards: (113 + 4) ÷ 3 = 39. 39 is not more than 100, so 39 → 113 is the last step. Going back again, (39 + 4) ÷ 3 = 14.33…, which is not a whole number, so the input is 39.
39
Mark yourself
Key idea. Undo the operations in reverse order: add 4, then divide by 3.
441.4
[2]Pablo enters 2. Explain what happens.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks
Model answer
3 × 2 − 4 = 2, so x stays at 2 every time. It is never greater than 100, so the flowchart goes round the loop forever and never gives an output.
3 × 2 − 4 = 2, so x stays 2 and the loop never stops.
Mark yourself
441.5
[2]Select every input for which the flowchart never stops.
Checks your final line. Mark a different line with ★ if your answer is not the last line.
Markscheme · 2 marks
Model answer
0 → −4 → −16 → −52 → … and 1 → −1 → −7 → −25 → … keep decreasing, so x never passes 100 and the flowchart never stops. 2 maps to itself (3 × 2 − 4 = 2), so x stays at 2 for ever and never stops. 3 and 10 grow and stop (outputs 245 and 218).
0, 1 and 2