Computer Science · Oct / Nov 2022 · Paper 21 · Question 3
0478
As printed in the paper
Show the answer and mark scheme
3(a)[6]
Two marks per check, description must match name of check if given, max six
Check 1 use a type checko
to ensure that the value is a number / integer
Check 2 use a length checko
to ensure that there are only 4 characters / digits
Check 3 use a range checko
to ensure that the value is >= 1000 and <=9999
3(b)[3]
One mark per mark point, max three
MP1
input the new PIN
MP2
input the new PIN again // ask the user to check the number on screen
MP3
check that both PINs are the same // confirm that it is the PIN to use
MP4
check that the new PIN is not the same as the old PIN
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

