Maintainability: Flashcards
1
Q
5What is the first way of making a programme more maintainable?
A
- Use comments.
- Explain purpose.
- Explain sections of code, (selections, iterations and procedures).
- Explain unusual necessary approaches.
- Visiually divide sections.
2
Q
What is the second way to make a programme more maintainable?
A
- White spaces to make sections of code easier to see.
3
Q
What is the third way to make a programme more maintainable?
A
- Identation.
- Every selection + Iteration branch.
4
Q
What is the forth way to make a programme more maintainable?
A
- Descriptive variable names.
- Use comments to explain purpose.
5
Q
What is the fith way to make a programme more maintainable?
A
- Use procedures or functions to.
- Structure code.
- Eliminate duplicating code.
6
Q
What is the six way to make a programme more maintainable?
A
- Use constants declared at the top of the programme.