Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

4. Test Techniques

Total questions: 12

Worksheet time: 24mins

Name
Class
Date
1.

Match the correct option to the test technique:

A. Test techniques leverage the experience of developers, testers and users to design, implement, and execute tests.

B. Test techniques concentrate on the inputs and outputs of the test object without reference to its internal structure.

C. Test techniques are based on an analysis of the architecture, detailed design, internal structure, or the code of the test object

  1. 1. Error guessing

  2. 2.Experience-based

  3. 3. Decision Table

  4. 4. Black-box

  5. 5. White-box

a)

A: 1, B: 4, C: 5

b)

A: 2, B: 4, C: 5

c)

A: 1, B: 5, C: 4

d)

A: 2 and 3, B: 4, C: 5 and 1

2.

A. The test basis of this test technique may include code, software architecture, detailed design, or any other source of information regarding the structure of the software.

B. The test basis of ​this test technique  may include software requirements, specifications, use cases, and user stories.

  1. 1. Error guessing

  2. 2.Experience-based

  3. 3. Decision Table

  4. 4. Black-box

  5. 5. White-box

a)

A: 1, B: 5

b)

A: 2, B: 3

c)

A: 5, B: 4

d)

A: 2: B: 4

3.

A system accept only values from 10 to 99, match the values with the corresponding equivalence.

a)

lower invalid partition

3 , 6 , 9

valid partition

15, 46, 73

upper invalid partition

101, 258

b)

lower invalid partition

101, 258

valid partition

15, 46, 73

upper invalid partition

3 , 6 , 9

c)

lower invalid partition

3 , 6 , 10

valid partition

15, 46, 73

upper invalid partition

99, 258

d)

lower invalid partition

3 , 6 , 9

valid partition

15, 46, 73 99.9

upper invalid partition

101, 258

4.

Suppose an input field accepts a single integer value as an input and the valid range is from 1 to 5.

Which is the minimum test cases required for a two boundary value testing? ​ ​ (a)  

Which is the minimum test cases required for a three boundary value testing? (b)

a)

(a) 3 , (b) 6

b)

(a) 2 , (b) 3

c)

(a) 2 , (b) 4

d)

(a) 4 , (b) 6

5.

Decision table testing is being performed on a speeding fine system. Two test cases have already been generated for rules R1 and R4, which are shown in table a),

Given the additional test cases in table b),

Which two of the additional test cases would achieve full coverage of the complete decision table (when combined with the test cases that have already been generated for rules R1 and R4)?

a)

DT1, DT2

b)

DT2, DT3

c)

DT2, DT4

d)

DT3, DT4

6.

Consider the following state transition diagram for a credit-card only, unattended gasoline pump:

Assume that you want to develop the minimum number of tests to cover each transition in the state transition diagram. Assume further that each test must start at the beginning state, waiting for customer, and each test ends when a transition arrives at the beginning state. How many tests do you need?

a)

4

b)

1

c)

7

d)

Infinite

7.

Which of the following statements BEST describes how test cases are derived from a use case?

a)

Test cases are derived by identifying the components included in the use case and creating integration tests that exercise the interactions of these components

b)

Test cases are generated by analyzing the interactions of the actors with the system to ensure the user interfaces are easy to use

c)

Test cases are created to exercise defined basic, exceptional and error behaviors performed by the system under test in collaboration with actors

d)

Test cases are derived to exercise each of the decision points in the business process flows of the use case, to achieve 100% decision coverage of these flows

8.

Which of the following descriptions of statement coverage is CORRECT?

a)

Statement coverage is a measure of the number of lines of source code exercised by tests

b)

Statement coverage is a measure of the percentage of lines of source code (without comments) exercised by tests

c)

Statement coverage is a measure of the number of executable statements in the source code exercised by tests

d)

Statement coverage is a measure of the proportion of executable statements in the source code exercised by tests

9.

The following statement refers to decision coverage:

“When the code contains only a single ‘if’ statement and no loops or CASE statements, and its execution is not nested within the test, any single test case we run will result in 50% decision coverage.”

Which of the following statement is correct?

a)

The statement is true. Any single test case provides 100% statement coverage and therefore 50% decision coverage

b)

The statement is true. Any single test case would cause the outcome of the “if” statement to be either true or false

c)

The statement is false. A single test case can only guarantee 25% decision coverage in this case

d)

The statement is false. The statement is too broad. It may be correct or not, depending on the tested software

Select ONE option.

10.

Which of the following BEST describes the concept behind error guessing?

a)

Error guessing involves using your knowledge and experience of defects found in the past and typical mistakes made by developers

b)

Error guessing requires you to rapidly duplicate the development task to identify the sort of mistakes a developer might make

c)

Error guessing involves using your personal experience of development and the mistakes you made as a developer

d)

Error guessing requires you to imagine you are the user of the test object and guess mistakes the user could make interacting with it

11.

Which of the following provides the BEST description of exploratory testing?

a)

A testing practice in which an in-depth investigation of the background of the test object is used to identify potential weaknesses that are examined by test cases

b)

An approach to testing whereby the testers dynamically designs and execute tests based on their knowledge, exploration of the test item and the results of previous tests

c)

An approach to test design in which test activities are planned as uninterrupted sessions of test analysis and design, often used in conjunction with checklist-based testing

d)

Testing based on the tester's experience, knowledge and intuition

12.

What is checklist-based testing?

a)

A test technique in which tests are derived based on the tester's knowledge of past faults, or general knowledge of failures

b)

A test technique based on an analysis of the specification of a component or system

c)

An experience-based test technique whereby the experienced tester uses a list of items to be noted, checked, or remembered, or a set of rules or criteria against which a product must be verified

d)

An approach to testing where the testers dynamically design and execute tests based on their knowledge, exploration of the test item and the results of previous tests