About this interactive
One way to keep a database accurate is to check data before it gets in. The lesson walked through the checks a form can make as someone fills it in, and this activity asks you to name which one is doing the work.
A mandatory field cannot be left blank; forms usually mark them with an asterisk. An input mask or format check controls how an entry is written: two letters for a state, an @ sign and a proper domain in an email, a set number of digits in a phone number or zip code. A range or limit keeps a value within bounds: a dollar amount that must be positive, a date that must fall in a sensible window, or a maximum number of records someone can enter at once.
A data type says what kind of value a field holds. An integer is a whole number with nothing after a decimal point; a decimal can have one; a string is a run of characters, letters and numbers alike. A field set to integer rejects 2.5 not because of its format but because it is not a whole number.
A check digit is a digit worked out from the other digits in the number. An ISBN, the number given to every published book, carries one at the end: the first nine digits are put through a calculation and the result is the tenth. If someone mistypes a digit, the calculation no longer matches the last digit, and the database knows the number was entered wrong.
The pair most often confused is format and data type. Ask whether the problem is how the characters are arranged (format) or what kind of value it is at all (data type).
About TechKnowSurge
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →