Question 3(a) 2022 · October-November · Paper 21 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 3
Part (a)
Question 6
Show text version of question
Question 3
Part (a)
is accepted, the following validation checks are performed:
- check 1 – each character must be a digit
- check 2 – there must be exactly four digits
- check 3 – the value of the PIN must be between 1000 and 9999 inclusive.
Describe each validation check.
Check 1 ....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Check 2 ....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Check 3 ....................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Why this question appears here
98% assigned-topic match · Algorithm design and problem-solving
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 0478_w22_qp_21.pdf
