Question 8
AQA Computer Science June 2022 Paper 1 (7517/1)A level4 marks
On the specification
- 8.1
- 3.1 Fundamentals of programming
- 8.2
- 3.1 Fundamentals of programming
- 8.3
- 4.1 Fundamentals of programming
- 8.4
- 3.1 Fundamentals of programming
Question text
8 An incomplete hierarchy diagram of the user-defined subroutines in part of the Skeleton Program is shown in Figure 11. Figure 11 8.1 Which identifier should replace ? [1 mark] 8.2 The value 5 is used in the subroutine SetupGame. It would be better to use a named constant with an identifier that describes the purpose of the constant. Suggest a suitable identifier for the named constant. [1 mark] 8.3 State one actual data value that will always be in the stack frame added to the stack when the subroutine LoadGame is called from the SetupGame subroutine. [1 mark] 8.4 Explain why the call to the subroutine AddDifficultyCardsToDeck is after, not before, the iteration structure in the SetupGame subroutine. [1 mark]