Chapter 15 - Testing and debugging Flashcards

1
Q

What is a fault?

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

What is the difference between testing and debugging?

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

What is a test case?

A

It consists of a specific input to the code, or a usage scenario performed under certain conditions.

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

What are the components of a test case?

A
  1. the input(s) for the test case.
  2. the expected output(s) for the given input(s).
  3. the reason for the test case.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the difference between black box and white box test case?

A

Black box: If we generate test cases for an algorithm/program/function using knowledge of only the expected behavior of the program or function, and without knowledge of the actual code (Cant see anything in the ‘Black box’).
White box: When we generate test cases for the for the code we are testing (Can see everything in the ‘white box’).

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

What are test drivers?

A

A program that contains the implementation of the test cases.

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

Are test drivers NEEDED for testing?

A

No they are not needed but are better to have in the long run.

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

What do you need to write black box tests?

A

Inputs, outputs, and reason.

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

Can testing be done with out code?

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

Can you write code based black box tests?

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

Why might we want to do white box testing?

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

What are three benefits of white box testing?

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

Which comes first, the test or the code?

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

What are three different methods of debugging?

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