Unit 1 SDD - Testing and Evaluation Flashcards

1
Q

What are the three types of test data?

A

Normal test data, extreme test data, and exceptional test data.

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

What is a test table used for?

A

To help determine what test data is required and to document the results of testing.

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

What are the three types of errors?

A

Syntax error, logic error, and execution error.

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

What type of error prevents code from being translated?

A

Syntax error.

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

What is the term for a runtime error?

A

Execution error.

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

How can a program be evaluated?

A

Fitness for purpose, efficient use of programming constructs, robustness, and readability.

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

How do you evaluate a program’s fitness for purpose?

A

Evaluate against the purpose and functional requirements identified during the analysis stage.

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

Give examples of efficient programming constructs.

A

Repetition, efficient data structures such as arrays, multiple selection statements, logical operators to combine conditions.

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

What is the definition of a robust program?

A

A program that can identify and cope with bad user input.

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

How can program code be made more readable?

A

Using meaningful variable names, using white space, indenting structures, inserting internal commentary.

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

What makes software robust?

A

It can cope with unexpected or incorrect input.

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

Why are input validation algorithms important?

A

They should include clear error messages so that users are able to understand what they need to do to enter acceptable data.

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

What data should be tested when accepting data from within a range?

A

Normal, exceptional, and extreme data.

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

Why is it important to test values just outside the acceptable range?

A

Because programs that are not robust may accept data just outside the extremes.

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

Why is readable code important?

A

Programmers often work on each other’s code, and you need to understand it later.

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

What are some techniques for improving code readability?

A

Internal commentary, meaningful identifiers, indentation, and white space.

17
Q

What is internal commentary?

A

Comments added to the code that are not translated and help explain the code.

18
Q

What is a meaningful identifier?

A

A variable name that describes what the variable contains.

19
Q

What is the purpose of indentation?

A

To make it easier to see the structure of the code, especially loops and if statements.

20
Q

What is white space used for?

A

To separate different subprograms and functions.