2.3-maintainability Flashcards

1
Q

What is maintenance?

A

Programs often need to change over time in order to:

correct errors (corrective maintenance)

modify in order to prevent errors occurring in the future (preventative maintenance)

adapt to new working practices (adaptive maintenance)

keep the program up to date and working well (perfective maintenance).

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

What are subprograms?

A

When program code is written, often sections are repeated, such as tests on inputs.
These sections of code can be saved as a subprogram, given a name, and be used over and over without having to reinvent or rewrite them each time they are needed. Doesn’t effect the rest of the program.

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

What is naming conventions?

A

Naming conventions help maintenance by making it easier to identify the different uses of words
in the program.

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

Why is indentation important?

A

Indentation is important because it:
makes source code easier to read
makes the beginning and ending of loops easier to follow
makes different sections of the code clear to the programmer.

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

Why is commenting important?

A

Commenting is important because it makes it obvious to:
the programmer, revisiting the program in the future
another programmer, maintaining the program in the future
other members of the team, working on the same code / project.

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