Software Testing and Analysis Flashcards

1
Q

For the expression (a || c) && (b || !c), the test suite (a, b, c) = {(T, F, T), (F, F, T), (F, T, T), (T, F, F)} provides:
a. MC/DC Coverage
b. Decision Coverage
c. Basic Condition Coverage
d. Compound Condition Coverage

A

b. Decision Coverage
c. Basic Condition Coverage

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

Acceptance testing is a critical validation activity.
a. True
b. False

A

a. True

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

All DU pairs coverage requires that all paths between each definition and each of its usages be covered by at least one test case.
a. True
b. False

A

b. False

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

A banking website that displays an error message and stops all normal operations when a database connection cannot be established is which of the following:
a. Correct with respect to its specification.
b. Safe to operate.
c. Robust in the presence of exceptional conditions.
d. Considered to have passed verification.

A

c. Robust in the presence of exceptional conditions.

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

In random ascent, we take the first neighbouring solution to show any improvement over the current solution as the new solution.
a. True
b. False

A

true

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

If all mutants are detected by a test suite, we have proof that all real faults have been detected as well.
a. True
b. False

A

b. False

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

You are designing a navigation app for mobile phones. You have designed the app to resend information if an update request fails. What reliability measures would be of most interest to you?
a. Availability
b. Probability of failure on demand
c. Mean time between failures
d. Rate of fault occurrence

A

c. Mean time between failures

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

What is the purpose of the Pub Crawl Tour?

A

Answer: The Pub Crawl Tour is designed to explore the application and find hidden features, glitches, and bugs.

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

What is the goal of the TOGOF Tour?

A

Answer: The goal of the TOGOF Tour is to test multiple copies of the same application running simultaneously.

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

What is the Scottish Pub Tour, and what type of applications is it suitable for?

A

Answer: The Scottish Pub Tour is a tour designed specifically for large and complicated applications, such as Microsoft Office products and sites like eBay, Amazon, and MSDN. Its purpose is to find hidden or hard-to-reach features and bugs.

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

What is the Rained-Out Tour, and how can it be useful for testing?

A

Answer: The Rained-Out Tour is a tour designed to test features that provide a cancel option or take longer than a few seconds to complete. Its purpose is to see how the application handles being interrupted or cancelled. This tour can be useful for testing whether the application properly cleans up after itself and can continue to work correctly after being cancelled.

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

What is the Couch Potato Tour, and how can it be useful for testing?

A

Answer: The Couch Potato Tour is a tour designed to test the application’s ability to process default values and handle blank input. Testers using this tour accept all default values and leave input fields blank. This tour can be useful for testing the application’s error-handling capabilities.

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

What is the Saboteur Tour, and how can it be useful for testing?

A

Answer: The Saboteur Tour is designed to test the application’s ability to handle environmental problems or resource restrictions. Testers using this tour force the software to take action, understand the resources it needs to complete that action, and then remove or restrict those resources in varying degrees. This tour can be useful for testing how the application handles different environmental conditions.

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

What is the Antisocial Tour, and what are its subtours?

A

Answer: The Antisocial Tour is a tour designed to test the application’s error-handling capabilities by entering the least likely inputs and/or known bad inputs. Its subtours are the Opposite Tour (entering the least likely input), the Crime Spree Tour (entering illegal inputs), and the Wrong Turn Tour (doing things in the wrong order).

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

What is the Obsessive-Compulsive Tour, and how can it be useful for testing?

A

Answer: The Obsessive-Compulsive Tour is designed to test the application’s ability to handle repetition and duplicate inputs. Testers using this tour enter the same input over and over or repeat the same action multiple times. This tour can be useful for finding glitches or bugs that occur when users perform the same action multiple times.

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

What is the purpose of the Seedy District?

A

Answer: The Seedy District is a metaphorical term for finding and testing the dark and often neglected areas of an application that users may not normally interact with.

17
Q

What is the purpose of the Tourist District?

A

Answer: The Tourist District is a metaphorical term for testing the most commonly used and visible features of an application.

18
Q

What is the mutation operator that replaces a relational operator with a different relational operator (e.g., “<” with “>=”)?

A

Relational operator replacement (ror)

19
Q

Give an example of a line of code that can be mutated using the relational operator replacement mutation operator (ror).

A

”<” with “>=”)

20
Q

What is the mutation operator that replaces an arithmetic operator with a different arithmetic operator (e.g., “+” with “-“)?

A

Arithmetic operator replacement (aor)

21
Q

Give an example of a line of code that can be mutated using the arithmetic operator replacement mutation operator (aor).

A

”+” with “-“)

22
Q

What is the mutation operator that replaces a constant with a different constant (e.g., 5 with 10)?

A

Constant for constant replacement (crp):

23
Q

Give an example of a line of code that can be mutated using the constant for constant replacement mutation operator (cpr).

A

5 with 10

24
Q

Verifying that a system meets its specification is sufficient to determine if the users’
needs have been met.

A

b. False

25
Q

All DU paths coverage requires that all paths between each definition and each of its
usages be covered by at least one test case.

A

False

26
Q

Any program that has passed all test cases and has been released to the public is
considered which of the following:
a. Correct with respect to its specification.
b. Safe to operate.
c. Robust in the presence of exceptional conditions.
d. Considered to have passed verification.

A

d. Considered to have passed verification.

27
Q

A mutant is considered valid - but not useful - if it compiles but the majority of tests fail.
a. True
b. False

A

true

28
Q

You are designing an autopilot system for aircraft. You have designed the system to
resend instructions if no acknowledgement is received, but it will cease after 10
attempts. What reliability measures would be of most interest to you?
a. Availability
b. Probability of failure on demand
c. Mean time between failures
d. Rate of fault occurrence

A

a. Availability
c. Mean time between failures
d. Rate of fault occurrence

29
Q

In general, we need either drivers or mock objects, but not both, when testing a module.
a. True
b. False

A

false

30
Q

f a system is on an average down for a total 30 minutes during any 24-hour period:
a. Its availability is about 98% (approximated to the nearest integer)
b. Its reliability is about 98% (approximated to the nearest integer)
c. Its mean time between failures is 23.5 hours
d. Its maintenance window is 30 minutes

A

a. Its availability is about 98% (approximated to the nearest integer)

31
Q

If a temporal property holds for a finite-state model of a system, it holds for any
implementation that conforms to the model.
a. True
b. False

A

true

32
Q

A test suite that meets a stronger coverage criterion will find any defects that are
detected by any test suite that meets only a weaker coverage criterion
a. True
b. False

A

false

33
Q

A test suite that is known to achieve Modified Condition/Decision Coverage (MC/DC) for
a given program, when executed, will exercise, at least once:
a. Every statement in the program.
b. Every branch in the program.
c. Every combination of condition values in every decision.
d. Every path in the program.

A

b. Every branch in the program.

34
Q

The Category-Partition test creation technique technique requires identification of:
a. Choices
b. Representative Values
c. Def-Use pairs
d. Pairwise combinations

A

a. Choices
b. Representative Values

35
Q

Validation activities can only be performed once the complete system has been built.
a. True
b. False

A

b. False

36
Q

The statement coverage criterion never requires as many test cases to satisfy as branch
coverage criterion.
a. True
b. False

A

false

37
Q

Requirement specifications are not needed for selecting inputs to satisfy structural
coverage of program code.
a. True
b. False

A

true

38
Q

A system that fails to meet its user’s needs may still be:
a. Correct with respect to its specification.
b. Safe to operate.
c. Robust in the presence of exceptional conditions.
d. Considered to have passed verification.

A

a. Correct with respect to its specification.
b. Safe to operate.
c. Robust in the presence of exceptional conditions.
d. Considered to have passed verification.