IDNLearn.com is your reliable source for expert answers and community insights. Discover in-depth answers to your questions from our community of experienced professionals.

What validation type would you use to check that numbers fell within a certain range? a) range check b)presence check c)check digit d)consistency check

Sagot :

Answer:

a) range check

Explanation:

Validation can be defined as an automatic computer check that is designed to ensure any data entered is sensible, consistent, feasible and reasonable.

Basically, there are five (5) main validation methods and these includes;

I. Presence check: checks that the user enters (inputs) data into the field. It ensures a field isn't accidentally left blank.

II. Length check: checks that the data entered isn't too short or too long. It ensures that the data meets the minimum characters.

III. Type check: checks that the data entered is in the right format. For example, string, integer, float, etc.

IV. Check digit: checks that the digit entered is acceptable and consistent with the rest of the digits.

V. Range check: checks that the data entered is between the accepted lower (minimum) and upper (maximum) level.

Hence, range check is a validation type you would use to check that numbers fell within a certain range.

For example, 0 < x > 1000 is a range check.