HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /Name the check in each case. Say whether it is validation or verification…
EasyComputer ScienceHigh School (9–10)Computer Science › Algorithms and Problem-SolvingConceptualIGCSE

Name the check in each case. Say whether it is validation or verification…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

Name the check in each case. Say whether it is validation or verification.

  1. A form will not continue until the email box has something in it.
  1. A ticket code must be two capital letters and four digits.
  1. A new password is typed twice and the two are compared.
  1. A number of children in a family must be from 000 to 202020.
  1. A username must have from 666 to 121212 characters.
  1. Before saving, the screen shows the order and asks "Is this right?".
  1. A box for the number of tickets refuses the input "two".
Need a reminder? The key ideaShowHide

Validation checks that data is sensible: range, length, type, presence and format checks, and a check digit. Verification checks that data was entered as intended: a visual check and a double entry check. A validation loop repeats the input, with an error message, until the data is acceptable.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

(a) Presence check (validation).

(b) Format check (validation).

(c) Double entry check (verification).

(d) Range check (validation).

(e) Length check (validation).

(f) Visual check (verification).

(g) Type check (validation): the box expects a whole number, and "two" is text.

Watch out. (d) and (e) are easy to mix up. A range check is about the size of a number. A length check counts characters.

Log in to save this for later
← All Problems
← A bubble sort is changed so that it sorts in descending order: the comparison becomes IF…A delivery company adds a check digit to each parcel number… →
More onComputer Science › Algorithms and Problem-Solving

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Validation and verificationStandard Algorithms: Totals, Searching, Sorting and Validation

More on this topic

  1. This is the kind of long scenario question that ends Paper 2…Hard
  2. A delivery company adds a check digit to each parcel number…Medium
  3. A bubble sort is changed so that it sorts in descending order: the comparison becomes IF…Hard
A shop stores the colours of the ten bicycles in its window in an array Colours: red, blue, red…Medium
  • A bubble sort puts the scores 5, 1, 4, 2, 8 into ascending order…Medium
  • All problems on this topic →