Maintainability And Testing Flashcards
1
Q
4 things to make a program maintainable
A
- Comments allow different programmers to investigate and understand the code.
- Indentation creates a layered approach to the code, showing that bits of code that line up with each other link together.
- Sub-Programs make the program easier to read and understand
- Naming Conventions help programmers understand the code at a quick glance e.g separate words in identifiers using an underscore
2
Q
Testing
A
The process of ensuring a solution works correctly and the way it should work.
3
Q
What does testing allow us to do?
A
- Find faults in programs which can be rectified
4
Q
Iterative Testing -
A
- Involves testing a solution throughout its development.
5
Q
Advantage of iterative testing
A
- Allows us to test small sections of code one bit at a time.
- This means it makes it easier to spot errors and fix them
6
Q
Disadvantages of iterative testing
A
- Can take up time in development
7
Q
Terminal/Final Testing
A
- Involves testing the whole solution once the development is complete.
8
Q
Advantage(s) of Terminal Testing
A
- Saves time during development
9
Q
Disadvantage of terminal testing
A
- Makes it difficult to spot errors.
10
Q
Example of invalid data
A
DOB as a day in future
11
Q
Example of boundary data
A
Number between 1 and 100 and user inputs 100