Maintainability Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Why does maintainability matter?

A

a programmer might return to a program they wrote before to add an extra feature, or to remove errors

understanding the code, and therefore modifying it will be easier if it is written in a maintainable style

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

four features of maintainability

A
  • comments
  • sensible variable names
  • indentation

-space between different sections of code

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

comments

A

lines in programs that provide information about what the different parts of the program do

not executed when the program is run

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

sensible variable names

A

often meaningless variable names such as x or y are chosen

this makes understanding them much more difficult

e.g.
height
instead of
H

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

indentation

A

code within selections or iterations should be indented

this allows the programmer to easily see which code falls within the selection or iteration, and when it ends

some programming languages indent automatically

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