AQA D1 2010 June — Question 7 6 marks

Exam BoardAQA
ModuleD1 (Decision Mathematics 1)
Year2010
SessionJune
Marks6
PaperDownload PDF ↗
Mark schemeDownload PDF ↗
TopicDynamic Programming
TypeRecurrence relation solution
DifficultyEasy -1.2 This is a straightforward algorithm trace requiring systematic execution of simple arithmetic operations and conditional logic. While it has 6 marks reflecting multiple iterations, it involves only basic arithmetic (addition, negation, division) and a simple if-statement with no conceptual difficulty or problem-solving insight required—purely mechanical execution of given instructions.
Spec7.03a Algorithm definition: input, output, deterministic, finite7.03c Working with algorithms: trace, interpret, adapt

A student is testing a numerical method for finding an approximation for \(\pi\). The algorithm that the student is using is as follows. Line 10 \quad Input \(A\), \(B\), \(C\), \(D\), \(E\) Line 20 \quad Let \(A = A + 2\) Line 30 \quad Let \(B = -B\) Line 40 \quad Let \(C = \frac{B}{A}\) Line 50 \quad Let \(D = D + C\) Line 60 \quad Let \(E = (D - 3.14)^2\) Line 70 \quad If \(E < 0.05\) then go to Line 90 Line 80 \quad Go to Line 20 Line 90 \quad Print '\(\pi\) is approximately', \(D\) Line 100 \quad End Trace the algorithm in the case where the input values are $$A = 1, \quad B = 4, \quad C = 0, \quad D = 4, \quad E = 0$$ [6 marks]

Question 7:
7
Question 7:
7
A student is testing a numerical method for finding an approximation for $\pi$.

The algorithm that the student is using is as follows.

Line 10 \quad Input $A$, $B$, $C$, $D$, $E$

Line 20 \quad Let $A = A + 2$

Line 30 \quad Let $B = -B$

Line 40 \quad Let $C = \frac{B}{A}$

Line 50 \quad Let $D = D + C$

Line 60 \quad Let $E = (D - 3.14)^2$

Line 70 \quad If $E < 0.05$ then go to Line 90

Line 80 \quad Go to Line 20

Line 90 \quad Print '$\pi$ is approximately', $D$

Line 100 \quad End

Trace the algorithm in the case where the input values are
$$A = 1, \quad B = 4, \quad C = 0, \quad D = 4, \quad E = 0$$ [6 marks]

\hfill \mbox{\textit{AQA D1 2010 Q7 [6]}}