Producing Robust Programs Flashcards
1
Q
What is used to check the input is the correct data type?
A
Type Check
2
Q
What is used to check the input is within the correct range?
A
Range Check
3
Q
What is used to check data has been entered?
A
Presence Check
4
Q
What is used to check input is in the correct format?
A
Format Check
5
Q
What is used to check the input has the correct number of characters?
A
Length Check
6
Q
Name three things you can do to make a program more maintainable?
A
- Comments (explain purpose of section)
- White Space (Makes sections of code stand out)
- Indentation (to show the flow of the program)
- Variable Names (clarify use for variable)
- Sub Programs (Structure of code)