Testing Techniques - Homework
Testing Techniques - Homework
Which of these groups of numbers would fall into the same equivalence class?
2. A program validates a numeric field as follows: values less than 10 are rejected,
values between 10 and 21 are accepted, values greater than or equal to 22 are rejected.
Which of the following input values cover all of the equivalence partitions?
a. 10,11,21
b. 3,20,21
c. 3,10,22
d. 10,21,22
3. Using the same specifications as question 29, which of the following covers the MOST
boundary values?
a. 9,10,11,22
b. 9,10,21,22
c. 10,11,21,22
d. 10,11,20,21
4. Order numbers on a stock control system can range between 10000 and 99999
inclusive.
Which of the following inputs might be a result of designing tests for only valid
equivalence classes and valid boundaries:
Disc = 0
Order-qty = 0
Read Order-qty
If Order-qty >=20 then
Disc = 0.05
If Order-qty >=100 then
Disc =0.1
End if
End if
a) Statement coverage is 4
b) Statement coverage is 1
c) Statement coverage is 3
d) Statement Coverage is 2
How many equivalence partitions are needed to test the calculation of the
bonus?
a) 3
b) 5
c) 2
d) 4
Now decide the minimum number of tests that are needed to ensure that all
the questions have been asked, all combinations have occurred, and all
replies given.
a) 3
b) 4
c) 5
d) 6
8. An input field takes the year of birth between 1900 and 2004.
a. 0,1900,2004,2005
b. 1900, 2004
c. 1899,1900,2004,2005
d. 1899, 1900, 1901,2003,2004,2005
9. A search form in a local auto retailer website contains the following elements:
Determine minimum number of tests to cover search functionality using pairwise testing
technique.