Computer Science · Oct / Nov 2020 · Paper 21 · Question 4
0478
As printed in the paper
The question as text
This flowchart inputs five numbers and performs a calculation. The predefined function MOD finds the remainder from integer division for example R ← 25 MOD 11 gives R a value of 3 START END IS V = 0 ? IS B = Z ? A ← V*2 + W*3 + X*4 + Y*5 INPUT V,W,X,Y,Z OUTPUT "Invalid" OUTPUT "Valid" No No Yes Yes B ← A MOD 11
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
4(a)[4]
One mark for correct input columns (V, W, X, Y, Z)
One mark for correct calculation column A
One mark for correct calculation column B
One mark for correct output column
V
W
X
Y
Z
A
B
OUTPUT
5
4
6
2
1
56
1
Valid
9
3
2
1
6
40
7
Invalid
7
6
1
5
1
61
6
Invalid
0
0
0
0
0
4(b)[2]
(Use first four digits input to) calculate a check digitCheck if the check digit input is valid
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

