Give one piece of normal test data and one piece of erroneous test data that could be used to validate the input of an email address. State the reason for your choice in each case.
- (a)Normal test data Reason Erroneous test data Reason[4]
Mark scheme
Marking points from the official mark scheme (May/June 2022). The mark or mark type is shown in brackets.
- [4] One mark per mark point, max four
- • Normal test data computerscience@cambridge.org.uk
- Reason this is a valid email address (containing the @ symbol) and should be accepted
- • Erroneous test data computerscienceisgreat
- Reason this is just a string, and should be rejected (as an email address needs a single '@')
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →