Computer Science · Oct / Nov 2020 · Paper 23 · Question 4
2210
As printed in the paper
The question as text
This flowchart represents an algorithm that allows the input of two numbers and performs a calculation. The predefined function MOD finds the remainder from integer division for example X 8 MOD 5 gives X a value of 3. START A Y MOD Z END IS Y = 0 ? IS Y > Z ? IS A = 0 ? A Z MOD Y INPUT Y,Z OUTPUT "Invalid" OUTPUT "Valid" No No No Yes Yes Yes
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
4(a)[4]
4(b)[2]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

