Question 2
AQA Computer Science June 2025 Paper 1 (7516/1)AS2 marks
On the specification
- 3.1 Fundamentals of programming
Question text
2 Figure 3 and Figure 4 show two blocks of pseudo-code. Figure 3 INPUT X WHILE X > 0 X ← X – 1 ENDWHILE Figure 4 INPUT X REPEAT X ← X – 1 UNTIL X ≤ 0 Explain why the pseudo-code in Figure 3 operates differently to the pseudo-code in Figure 4 when the inputs are negative numbers. [2 marks]