Testing Data Flashcards

1
Q

Name three types of Data and what they are with an example

A

Normal - data within the range of numbers asked for (like for asked for a month you would say 6 for June).

Extreme - data on the limits of the range of numbers asked for. (1 or 12)

Exceptional - data outside the range of numbers asked for. 27 or -1.

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

What happens if testing doesn’t happen when IT IS BEING CREATED?

A

The amount of testing after the program is created can be extensive.

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

Name the three types of program errors

A

Syntax error
Logic error
Execution (run-time) error

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

What is a syntax error and give an example

A

It is a spelling mistake or a mistake in the grammar of the program.

Anwser - Answer
Or Repeat but no end repeat
If but no end if

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

What is a logic error

A

A mistake in the logic of the program

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

When is a logic error usually noticed

A

When program is being run

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

Give an example of a logic error

A

Incorrect IF statement

Adding two numbers when they should have been subtracted

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

When is an execution error usually noticed and give an example

A

When program is being run

Trying to divide a number by 0

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

Give an example of an execution error

A

Not properly stating a variable at the start of the program

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

Name the four ways that your program readability is made better for someone else

A

Internal commentary
Use of whitespace
Meaningful variables and array names
Indentation of loops and decisions

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

What is internal commentary

A

An extra comment/ note that gives the programmer a better idea of what each part of the program is actually doing

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

What is special about internal commentary

A

The lines of code are not run by the programming languages translator

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

How does meaningful arrays and variable names help?

A

Gives the programmer a good idea on what data will be stored in each variable

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

How does indentation of ——- and ——– help

A

Loops and decisions

They help to clearly indicates when a loop starts or ends

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

Whitespace - talk

A

It helps the program be easier to read if it was split into procedures using whitespace

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