Week 29 Explore 1 Task Validation and Verification-1 - Gillian Jacob

You might also like

You are on page 1of 2

Gillian Jacob

Validation and verification


1
Verification ensures
that data is correctly
entered, and
validation ensures
2 ✓
that data is
appropriate
Example and Range Length Type Presence Format
within boundaries. check check check check check

Check the username has been


entered.

Check the age is between 10 and 50.

Check that the username has at


least 8 characters.

Check that the ID starts with 2


numbers followed by 3 letters.

Check that the date of birth is a


date.

Practice

REPEAT
Number INPUT ("Enter a number")
+
UNTIL (Number >= 1 AND Number <= 10)

Cambridge IGCSE™ & O Level Computer Science – Ellis © Cambridge University Press 2021 1
2

REPEAT
Number ← INPUT ("Enter a number")

UNTIL (Number.isInteger = True)

3
REPEAT
Number INPUT ("Enter a number")

UNTIL (Number <> Null)

Challenge
1

Cambridge IGCSE™ & O Level Computer Science – Ellis © Cambridge University Press 2021 2

You might also like