Question 7
AQA Computer Science June 2025 Paper 1 (7517/1)A level3 marks
On the specification
- 7.1
- 4.3 Fundamentals of algorithms
- 7.2
- 4.3 Fundamentals of algorithms
Question text
7 This question is about the EvaluateRPN subroutine. 7.1 Describe an infix expression that: • would cause the subroutine CheckIfUserInputValid to return True and • could be successfully converted to RPN by the ConvertToRPN subroutine but that would not be evaluated correctly by the EvaluateRPN subroutine. [1 mark] 7.2 Explain the purpose of the final selection structure in the EvaluateRPN subroutine. Your explanation should include a description of what the possible values returned by the subroutine represent. [2 marks]