Computer Science · Oct / Nov 2023 · Paper 22 · Question 2
0478
As printed in the paper
The question as text
A type of validation check is a length check. Another type of validation check is used to make sure that any date entered is in the dd/mm/yyyy style: dd means day, mm means month and yyyy means year.
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
2(a)[1]
Format check
2(b)[4]
One mark for each appropriate test data, max two
One mark for each correct accompanying reason, max two
For example:
Normal – 30/12/1960 …
Reason – … (the date is written in the correct format and) should be accepted.
Abnormal – 30/Dec/1960 …
Reason – … (the month is not written in the correct format and) should be rejected.
2(c)[2]
One mark per mark point, max two
MP1
check that there are 10 characters in total
MP2
if the date is too long/short it will be rejected
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

