2.3 Flashcards

(18 cards)

1
Q

What is defensive design?

A

Designing and creating programs which are able to handle unexpected or erroneous inputs.

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

What is authentication?

A

Authentication is the process of determining the identity of a user, such as through their username and password before granting access to a system.

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

What is validation?

A

Validation is the process of checking data is appropriate and sensible for its use.

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

What is the purpose of a presence check?

A

A presence check ensures that data has been entered and not left blank.

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

What is the purpose of a range check?

A

A range check ensures that an input falls within a required numeric range, e.g. greater than 10.

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

What is the purpose of a length check?

A

A length check ensures that a certain number of characters have been entered.

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

Why is it important to maintain programs?

A

Programs should be maintained so they function as intended, are secure, and to prevent errors as the program’s use continues.

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

Why is it important to have good naming conventions?

A

Good naming conventions make it easy to understand what each variable is responsible for, which is useful when debugging or if someone else edits your code.

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

What are other methods of maintaining programs?

A

Using subprograms, indentation, comments, and good naming conventions.

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

What is the purpose of testing?

A

Testing takes place to find any errors and rectify them.

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

What is the difference between iterative and final testing?

A

Iterative testing takes place throughout development, making improvements and changes at the same time; final testing takes place at the end, checking for any last minute bugs.

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

What is a syntax error?

A

Syntax errors are errors which break the grammatical rules of a programming language, stopping the program from running.

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

What is a logic error?

A

A logic error is an error in the design or logic of a program, resulting in an unexpected or incorrect output.

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

Why are logic errors hard to identify?

A

Logic errors may be present even if the program runs, and testing and tracing the program may be required to spot them.

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

What is normal test data?

A

Test data which falls within the given range, usually a typical, valid input.

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

What is boundary test data?

A

Test data which is on the edge of a valid range, such as 1 and 10 for a range of 1-10.

17
Q

What is erroneous test data?

A

Test data which is invalid, such as 11 or “one” for a range of 1-10.

18
Q

Why are algorithms refined?

A

Algorithms are refined to update their functionality and capacity over time, as well as fix any errors found through testing.