Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 12 - No. 3)

What is the main function of a 'length check' in data validation?
To check if a data value is present.
To verify the number of characters in a data value.
To confirm that a data value is of the correct data type.
To ensure the data value is within a certain range.

Explanation

Length checks are used to validate the number of characters in a string, for instance, the length of a password.

Comments (0)

Advertisement