0Still learning
Know0
Define "validation" in the context of data input.
Validation is a method used to check that an input from a user is acceptable and matches the requirements of the program.
What are the six categories of validation?
The six categories of validation are: range check, length check, type check, presence check, format check, and check digit.
What is a range check?
A range check ensures the data entered as a number falls within a particular range.
Enjoying Flashcards?
Tell us what you think
Define "validation" in the context of data input.
Validation is a method used to check that an input from a user is acceptable and matches the requirements of the program.
What are the six categories of validation?
The six categories of validation are: range check, length check, type check, presence check, format check, and check digit.
What is a range check?
A range check ensures the data entered as a number falls within a particular range.
Define "length check"
A length check verifies that the length of a string meets specific criteria, such as a minimum or maximum number of characters.
What does a type check do?
A type check verifies that the data entered matches the expected data type, such as ensuring an age is entered as an integer.
What is the purpose of a presence check?
A presence check looks to see if any data has been entered in a field, ensuring that required fields are not left blank.
Define "format check"
A format check ensures that the data has been entered in the correct format, often using pattern matching and string handling.
What is verification in data entry?
Verification is the act of checking that data is accurate when entered into a system.
What are two methods of verification?
Two methods of verification are double entry checking and visual checks.
What is the purpose of a check digit?
A check digit is a numerical value, usually the final digit of a larger code, calculated by applying an algorithm to the code to verify its accuracy.
Define "suitable test data"
Suitable test data is specially chosen data to test the functionality of a program or design.
What are the four categories of suitable test data?
The four categories of suitable test data are: normal, abnormal, extreme, and boundary.
What is normal test data?
Normal test data is data that should be accepted in the program.
Define "abnormal test data"
Abnormal test data is data that is the wrong data type for the input field.
What is extreme test data?
Extreme test data is the maximum and minimum values of normal data that are accepted by the system.
How does boundary test data differ from extreme test data?
Boundary test data tests values on either side of the maximum and minimum acceptable values, including the largest and smallest unacceptable values.
True or False?
Suitable test data is only used to check if a program works correctly.
False.
Suitable test data is used to test both correct functionality and how the program handles incorrect inputs.
What is the purpose of using different categories of test data?
The purpose of using different categories of test data is to thoroughly test various aspects of the program, including its ability to handle both valid and invalid inputs.
A program to check age is between 18 and 25, what would be an example of boundary test data?
Boundary test data would include ages:
18,25 -smallest & largest accepted data
17 & 26 - data falling just below & exceeding
Why is it important to test with abnormal data?
It's important to test with abnormal data to ensure the program can handle incorrect input types and doesn't crash or behave unexpectedly when given invalid data.
Define "trace table"
A trace table is used to test algorithms and programs for logic errors that appear when an algorithm or program executes.
Trace tables can be used with flowcharts, pseudocode, or?
Program code.
What are two purposes of using a trace table?
Two purposes of using a trace table are: discover the purpose of an algorithm and record the state of the algorithm at each step or iteration.
How is a trace table executed?
A trace table is executed by following each stage of the algorithm step by step.
True or False?
Trace tables can only be used with program code.
False.
Trace tables can be used with flowcharts, pseudocode, or program code.
What can be checked using a trace table?
Inputs, outputs, variables, and processes can be checked for the correct value at each completed stage using a trace table.
In a trace table, what does each row typically represent?
In a trace table, each row typically represents a single step or iteration of the algorithm.
What type of errors are trace tables particularly useful for identifying?
Trace tables are particularly useful for identifying logic errors that appear when an algorithm or program executes.