Week 3 Flashcards

1
Q

(True or False) Combinatorial coverage looks at parameter values being individually tested.

A

False

Combinatorial coverage looks at how combinations of parameter values are tested together

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

Assume we are testing a function with 3 variables:

Variable A: has values 0 and 1

Variable B: has values 0 and 1

Variable C: has values 0 and 1

What is the total 2-way variable value configuration coverage achieved by the following tests:

A=0; B=0; C=0

A=0; B=1; C=1

A=1, B=1, C=0

1 / 1 point

9/12

7/12

10/12

8/12

A

9/12

Possible combinations: A=0 B=0; A=0 C=0; B=0 C=0; A=0 B=1; A=0 C=1; B=1 C=1; A=1 B=1; A=1 C=0; B=1 C=0

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

What is the goal of the design of experiments?

Minimize the number of tests we need to run

Maximize the number of tests we need to run

Test a random number of combinations

A

Minimize the number of tests we need to run

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

(True or False) Design of Experiments pairwise combination involves systematically testing all combinations of inputs.

A

False

Only pairs of values for each input are tested together, not all combinations of values of inputs.

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

Given 3 inputs: P1 with values V1 and V2; P2 with values V3, V4, and V5 and P3 with values V6 and V7, what are the correct tests for a pairwise combination design of experiments?

V3	V1	V6
V3	V2	V7
V4	V1	V7
V4	V2	V6
V5	V1	V6
V5	V2	V7

V3 V1 V6
V4 V1 V6
V5 V1 V6

V3	V1	V6
V3	V2	V7
V4	V1	V6
V4	V2	V7
V5	V1	V6
V5	V2	V7

V3 V1 V6
V3 V2 V7
V4 V1 V7
V4 V2 V6

A
V3	V1	V6
V3	V2	V7
V4	V1	V7
V4	V2	V6
V5	V1	V6
V5	V2	V7
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is NOT an example of a mutation?

Renaming a class and anywhere that the class is called or found

Modifying Boolean expressions

Modifying arithmetic operations

A

Renaming a class and anywhere that the class is called or found

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

What is NOT an example of a mutation?

Modifying arithmetic operations

Renaming a class and anywhere that the class is called or found

Modifying variables

Modifying Boolean expressions

A

Renaming a class and anywhere that the class is called or found

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

True or False? Fuzz testing consists of random, invalid or unexpected inputs that are created automatically.

A

True

Fuzz testing is an approach to testing where invalid, random or unexpected inputs are automatically generated.

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

True or False? Fuzz testing looks only for undesirable behavior or crashes.

A

True

Fuzz testing is not looking at specific inputs or outputs, but is instead looking for an error or a wrong behavior.

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

True or False? Metamorphic testing makes the assumption that if there is a program with input x that results in output y, and there is a change to input x, that same change is not reflected in output y.

A

False
Metamorphic testing makes the assumption that when changes are made to an input, it is possible to predict changes on the output.

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

Without using a calculator, what would be the expected output of this example using metamorphic testing for the third test case?:

Initial Test: 5 10 15 20 25 Stan. Dev Result: 7.2

Second Test: 5 15 25 35 45 Stan Dev Result: 14.4

Third test: 15 20 25 30 35 Stan Dev Result:

1 / 1 point

  1. 2
  2. 4
  3. 6
  4. 8
A

7.2

When the values are incremented by 5, the standard deviation was 7.2 In the third test, the values are incremented by 5.

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

True or False? Defect based testing can only be applied at the unit level.

A

False

Defect based testing can be applied at any level of testing.

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

True or False? Defect based testing looks to create test cases that target specific defect categories

A

True

Defect based testing can target any defect category from the Beizer Generic Defect Taxonomy Categories.

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

True or False? In exploratory testing, all test scripts are not developed in advance.

A

True

What is tested next is based on the results of the previous tests.

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

True or False? Exploratory testing focuses on a tour that helps detect a specific error.

A

True
Exploratory testing can consist of requirements, features, continuous use, documentation, etc. tours that focus on different errors.

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

Assume we are testing a function with 3 variables:

    	Variable A: has values 0 and 1

    	Variable B: has values 0 and 1

    	Variable C: has values 0 and 1

What is the total 3-way variable value configuration coverage achieved by the following tests:

A=0; B=0; C=0

A=0; B=1; C=1

A=1, B=1, C=0

A=1, B=1, C=1

4/12
4/8
6/12
3/8

A

4/8

17
Q

Given 3 inputs: P1 with values V1, V2, V3; P2 with values V4, V5, V6 and P3 with values V7 and V8, how many tests are there for a pairwise combination design of experiments?

9
18
6
8

A

18

18
Q

Assume we are testing a function with 3 variables:

    	Variable A: has values 0 and 1

    	Variable B: has values 0 and 1

    	Variable C: has values 0 and 1

What is the total 2-way variable value configuration coverage achieved by the following tests:

A=0; B=0; C=1

A=0; B=1; C=1

A=1, B=0, C=0

3/8
8/12
7/12
9/12

A

8/12

19
Q

True or False? Metamorphic testing does not require looking at relationships between the input and output.

A

False

20
Q

True or False? Defect based testing utilized defect taxonomies to create test cases to target certain defects.

A

True

21
Q

True or False? Assume all test cases pass for program x. Assume a mutant of the program y is created and all test cases also pass for y. This provides confidence that the original test cases are good.

A

False

22
Q

True or False? Automation helps run large numbers of tests against the original program and mutants of a program

A

True

23
Q

True or False? An assumption of mutation testing is the belief that detecting small errors can also help detect complex errors.

A

True

24
Q

True or False? Mutation fuzz based testing is based upon a testing “seed”, otherwise known as a valid test case.

A

True

25
Q

True or False? Fuzz testing requires having a test oracle.

A

False

test Oracle not needed