Question 10

AQA Computer Science June 2023 Paper 1 (7517/1)A level2 marks

On the specification

10.1
3.1 Fundamentals of programming
10.2
3.6 Fundamentals of computer systems
Question text

10 This question is about the CheckIfGameOver method in the Dastan class. 10.1 Explain why the first selection structure is needed. [1 mark] 10.2 Figure 6 shows a pseudo-code representation of part of the CheckIfGameOver method. Figure 6 NOT (Player1HasMirza AND Player2HasMirza) Rewrite the code in Figure 6 so that it has the same functionality but uses OR and NOT Boolean operations only, instead of the AND and NOT Boolean operations. [1 mark]