Experts| Latest Update
Which of the following is an experience-based testing technique?
a. Error guessing
b. Intuitive testing
c. Oracle-based testing
d. Exhaustive testing A
(A is correct, per syllabus. B and C are not testing techniques. D is not possible unless the code
is trivial and is not an experience-based technique)
Which of the following test techniques uses the requirements specifications as a test basis?
a. Structure-based
b. Black-box
c. White-box
d. Exploratory B
(B is correct, per syllabus. Black-box testing is based off the requirements documents. A and C
are incorrect because these use the structure of the software as the test basis. D is incorrect
because exploratory testing is often done when there is no specification, thus giving the tester
the opportunity to learn about the software while testing.)
How is statement coverage determined?
a. Number of test decision points divided by the number of test cases b. Number of decision
outcomes tested divided by the total number of executable statements
c. Number of possible test case outcomes divided by the total number of function points
d. Number of executable statements tested divided by the total number of executable
statements D
(D is correct, per syllabus. A, B and C are not valid measures)
,If you have a section of code that has one simple IF statement, how many tests will be needed
to achieve 100% decision coverage?
a. 1
b. 2
c. 5
d. Unknown with this information B
(B is correct. A simple IF statement will be composed of If ... then ... else.... end if. There are two
decision outcomes, one for the result of the If being true and one for it being false. Since 100%
decision coverage requires at least one test case for each decision outcome, two tests are
needed. A and C are incorrect because these are the wrong numbers of tests. D would be
correct if this weren't defined as a simple if statement because a complex if statement could
include more than two outcomes.)
What is error guessing?
a. A testing technique used to guess where a developer is likely to have made a mistake
b. A technique used for assessing defect metrics
c. A development technique to verify that all error paths have been coded
d. A planning technique used to anticipate likely schedule variances due to faults A
(A is correct. Error guessing is a technique used to anticipate where developers are likely to
make errors and to create tests to cover those areas. B, C and D are not correct.)
When exploratory testing is conducted using time-boxing and test charters, what is it called?
a. Schedule-based testing
b. Session-based testing
c. Risk-based testing
d. Formal chartering B
(B is correct. This is often called session-based testing and may use session sheets. A is not
correct. Exploratory doesn't usually comply to schedules but rather allows the tester to explore
and learn about the software. Coverage is difficult to assess which is one of the reasons it is
difficult to match the time spent to the amount accomplished. C is not correct. This may be one
,of the forms of risk-based testing, but it is not entirely RBT. D is not correct as this is not
actually a testing term)
You are testing a scale system that determines shipping rates for a regional web-based auto
parts distributor. You want to group your test conditions to minimize the testing. Identify how
many equivalence classes are necessary for the following range. Weights are rounded to the
nearest pound.
Weight 1-10lb 11-25lb 26-50lb 51lb&up
Shipping Cost $5 $7.5 $12 $17
a. 8
b. 6
c. 5
d. 4 C
(C is correct. You need a partition for each of the 4 classes and one for a zero or negative
weight.)
You are testing a scale system that determines shipping rates for a regional web-based auto
parts distributor. Due to regulations, shipments cannot exceed 100 lbs. You want to include
boundary value analysis as part of your black-box test design. How many tests will you need to
execute to achieve 100% two-value boundary value analysis?
Weight 1-10lb 11-25lb 26-50lb 51-100lb
Shipping Cost $5 $7.5 $12 $17
a. 4
b. 8
c. 10
d. 12 C
(C is correct. 2 per valid weight range plus one for a negative weight and one for a weight
exceeding 100 lbs (-1, 0, 10, 11, 25, 26, 50, 51, 100, 101).)
You are testing an e-commerce transaction that has the following states and transitions:
, 1. Login (invalid) > Login
2. Login > Search
3. Search > Search
4. Search > Shopping Cart
5. Shopping Cart > Search
6. Shopping Cart > Checkout
7. Checkout > Search
8. Checkout > Logout
For a state transition diagram, how many transitions should be shown?
a. 4
b. 6
c. 8
d. 16 C
(C is correct. There are 8 transitions that should be shown in the state transition diagram as
explained in the question. A is not correct as this is only checking one transition from each
state. B is not correct because this is probably excluding login > login and search > search. D is
not correct because it is checking the invalid transitions as well and those would be included in
a state table, not a state transition diagram. These are:
1. Login (invalid) > Login
2. Login > Search
3. Login > Shopping Cart (invalid transition)
4. Login > Checkout (invalid transition)
5. Search > Login (invalid transition)
6. Search > Search
7. Search > Shopping Cart
8. Search > Checkout (invalid transition)
9. Shopping Cart > Login (invalid transition) 10.Shopping Cart > Search
11.Shopping Cart > Shopping Cart (invalid transition)