Worksheets4. Test Techniques
Total questions: 12
Worksheet time: 24mins
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. Error guessing
2.Experience-based
3. Decision Table
4. Black-box
5. White-box
A: 1, B: 4, C: 5
A: 2, B: 4, C: 5
A: 1, B: 5, C: 4
A: 2 and 3, B: 4, C: 5 and 1
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. Error guessing
2.Experience-based
3. Decision Table
4. Black-box
5. White-box
A: 1, B: 5
A: 2, B: 3
A: 5, B: 4
A: 2: B: 4
A system accept only values from 10 to 99, match the values with the corresponding equivalence.
lower invalid partition
3 , 6 , 9
valid partition
15, 46, 73
upper invalid partition
101, 258
lower invalid partition
101, 258
valid partition
15, 46, 73
upper invalid partition
3 , 6 , 9
lower invalid partition
3 , 6 , 10
valid partition
15, 46, 73
upper invalid partition
99, 258
lower invalid partition
3 , 6 , 9
valid partition
15, 46, 73 99.9
upper invalid partition
101, 258
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) 3 , (b) 6
(a) 2 , (b) 3
(a) 2 , (b) 4
(a) 4 , (b) 6
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)?
DT1, DT2
DT2, DT3
DT2, DT4
DT3, DT4
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?
4
1
7
Infinite
Which of the following statements BEST describes how test cases are derived from a use case?
Test cases are derived by identifying the components included in the use case and creating integration tests that exercise the interactions of these components
Test cases are generated by analyzing the interactions of the actors with the system to ensure the user interfaces are easy to use
Test cases are created to exercise defined basic, exceptional and error behaviors performed by the system under test in collaboration with actors
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
Which of the following descriptions of statement coverage is CORRECT?
Statement coverage is a measure of the number of lines of source code exercised by tests
Statement coverage is a measure of the percentage of lines of source code (without comments) exercised by tests
Statement coverage is a measure of the number of executable statements in the source code exercised by tests
Statement coverage is a measure of the proportion of executable statements in the source code exercised by tests
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?
The statement is true. Any single test case provides 100% statement coverage and therefore 50% decision coverage
The statement is true. Any single test case would cause the outcome of the “if” statement to be either true or false
The statement is false. A single test case can only guarantee 25% decision coverage in this case
The statement is false. The statement is too broad. It may be correct or not, depending on the tested software
Select ONE option.
Which of the following BEST describes the concept behind error guessing?
Error guessing involves using your knowledge and experience of defects found in the past and typical mistakes made by developers
Error guessing requires you to rapidly duplicate the development task to identify the sort of mistakes a developer might make
Error guessing involves using your personal experience of development and the mistakes you made as a developer
Error guessing requires you to imagine you are the user of the test object and guess mistakes the user could make interacting with it
Which of the following provides the BEST description of exploratory testing?
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
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
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
Testing based on the tester's experience, knowledge and intuition
What is checklist-based testing?
A test technique in which tests are derived based on the tester's knowledge of past faults, or general knowledge of failures
A test technique based on an analysis of the specification of a component or system
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
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
