Question 7

AQA Computer Science June 2025 Paper 1B (8525/1B)GCSE7 marks

On the specification

7.1
3.2 Programming
7.2
3.1 Fundamentals of algorithms3.2 Programming
7.3
3.2 Programming
7.4
3.2 Programming
7.5
3.1 Fundamentals of algorithms3.2 Programming
Question text

7 Figure 7 shows a subroutine written in pseudo-code. box Figure 7 SUBROUTINE testSub(number) OUTPUT number x  number MOD 2 OUTPUT x IF x = 0 THEN RETURN True ELSE RETURN False ENDIF ENDSUBROUTINE 7.1 Describe the purpose of the subroutine in Figure 7. [1 mark] 7.2 The subroutine in Figure 7 is called using testSub(10) Complete the table to show the values output. [2 marks] Program Code Output OUTPUT number OUTPUT x 7.3 The subroutine in Figure 7 is called using testSub(8) State the value returned. [1 mark] 7.4 State the identifier for the parameter in Figure 7. box [1 mark] 7.5 State two characteristics of the structured approach to programming. [2 marks] 1 2