Maintainability Flashcards

1
Q

What are the 4 reasons why a program may need modifying?

A

To add a new feature
To fix a bug
To improve the speed or performance
To port it so that it will run on a different CPU or Operating System

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the process of maintainability?

A

The process of ensuring that code can be easily amended or updated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why are ‘comments’ useful in code?

A

They can explain what a particular line or block of code is doing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are 4 good ways of maintainability?

A

Extensive comments to explain each part of the code and its overall purpose
Effective use of indentation to easily see related blocks of code
Effective use of blank lines to visually split up the source code into related parts
Using sensible and meaningful names to variables, constants and functio

How well did you know this?
1
Not at all
2
3
4
5
Perfectly