1.9 Flashcards

1
Q

What is defensive design?

A

Defensive design is an approach to software development where every possible input from a user is considered to anticipate all of the ways a user could misuse a program.

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

Define robust (programming)

A

Robust is ensuring that the final program is reliable for all users.

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

What are the 5 main categories of input validation?

A

The 5 main categories of input validation are:

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
4
Q

State the meaning of isdigit()

A

The isdigit() method checks if a string contains only digits. It returns True if all characters are digits, False otherwise.

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

What is program maintainability?

A

Program maintainability is used to ensure programmers can easily understand what a program is doing months or years after having first written it.

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

Define debugging

A

Debugging is the process of finding and resolving errors or defects within a program.

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

What features promote maintainability?

A

The features that promote maintainability are:

comments

meaningful variable names

white space

indentation.

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

Iterative testing

A

Iterative testing is a type of testing where each part of the program is tested during the development of the program.

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

Final testing

A

Final testing is a type of testing done at the end of development.

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