Maintainability And Testing Flashcards

1
Q

4 things to make a program maintainable

A
  • Comments allow different programmers to investigate and understand the code.
  • Indentation creates a layered approach to the code, showing that bits of code that line up with each other link together.
  • Sub-Programs make the program easier to read and understand
  • Naming Conventions help programmers understand the code at a quick glance e.g separate words in identifiers using an underscore
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Testing

A

The process of ensuring a solution works correctly and the way it should work.

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

What does testing allow us to do?

A
  • Find faults in programs which can be rectified
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Iterative Testing -

A
  • Involves testing a solution throughout its development.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Advantage of iterative testing

A
  • Allows us to test small sections of code one bit at a time.
  • This means it makes it easier to spot errors and fix them
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Disadvantages of iterative testing

A
  • Can take up time in development
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Terminal/Final Testing

A
  • Involves testing the whole solution once the development is complete.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Advantage(s) of Terminal Testing

A
  • Saves time during development
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Disadvantage of terminal testing

A
  • Makes it difficult to spot errors.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Example of invalid data

A

DOB as a day in future

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

Example of boundary data

A

Number between 1 and 100 and user inputs 100

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