1.9 Flashcards
What is defensive design?
Defensive design is an approach to software development where every possible input from a user is considered to anticipate all of the ways a user could misuse a program.
Define robust (programming)
Robust is ensuring that the final program is reliable for all users.
What are the 5 main categories of input validation?
The 5 main categories of input validation are:
length check
type check
range check
presence check
format check.
State the meaning of isdigit()
The isdigit() method checks if a string contains only digits. It returns True if all characters are digits, False otherwise.
What is program maintainability?
Program maintainability is used to ensure programmers can easily understand what a program is doing months or years after having first written it.
Define debugging
Debugging is the process of finding and resolving errors or defects within a program.
What features promote maintainability?
The features that promote maintainability are:
comments
meaningful variable names
white space
indentation.
Iterative testing
Iterative testing is a type of testing where each part of the program is tested during the development of the program.
Final testing
Final testing is a type of testing done at the end of development.