Miscellaneous Paper 2 topics Flashcards

1
Q

maintainability

A

how well structured a program is and how easy it is for users to understand the purpose of it

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

methods to help maintainability

A

comments, indentation, sub-programs

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

comments in a program

A

useful for explaining the key features of a program

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

indentation

A

separates segments and blocks of code

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

sub-programs

A

make it easier for other programmers to see how different parts of a program work

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

defensive design

A

methods of ensuring that programs function correctly, and don’t break and produce errors

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

input validation

A

checking that data meets certain criteria before passing it into a program

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

examples of input validation checks

A

length check, type check, range check, presence check, format check

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

length check

A

checks the length of a string e.g ensuring that a password is 8 or more characters in length

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

type check

A

checks the data type of a field e.g. checking that a user’s age has been entered as an integer

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

range check

A

ensures that data entered as a number falls in a particular range e.g. checking that a user’s age is between 0-100

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

presence check

A

looks to see if any data has been entered into a field

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

format check

A

ensuring that data has been entered in the correct format e.g. checking whether an email address contains the @symbol and a full stop

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