Maintainability Flashcards

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

Why are sub-programs used?

A
  • Only need to be written once and then called whenever needed (reduces lines)
  • Can be changed or tested without affecting the rest of the program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why is indentation used?

A
  • Makes code easier to read
  • Makes the beginning and end of a loop clear
  • Used to make the IDE understand that this is the start or end of a loop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why are comments used?

A
  • So if the programmer returns to his code, he knows what it was about
  • For other programmers that read the code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why is program maintenance necessary?

A
  • Programs need to change to correct errors, modified to prevent errors in the future. Makes modifying programs easier
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the four types of program maintenance?

A
  • Corrective, preventive, adaptive and perfective. (PPAC)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is naming convention?

A
  • It is when the name of a variable or a function should match the task or thing that it does
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the four different types of program maintenance?

A
  • Naming convention
  • Indentation
  • Comments
  • Sub-programs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is destructive testing?

A
  • Deliberately trying to break your program with data that the program wouldn’t expect.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is iterative testing?

A
  • Testing carried out on the modules to make sure the program works bit by bit. Testing is repeated until the code meets the desired outcome.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Why is iterative testing good?

A

By going through each section individually you can see which section has the error or if the section can work on its own.

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

What is terminal testing?

A
  • Testing carried out at the end of the program to ensure that it works as a whole program and not just the modules you create.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is modular testing?

A
  • Same as iterative
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the name of the test where you focus on what goes in and out of the program?

A

Black box testing

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

What is the name of the test that focuses on what happens inside the program?

A

White box testing

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