Equivalence Class Partitioning & Boundary Value Analysis Examples

1. If a candidate is given an exam of 40 questions, should get 25 marks to pass
(61%) and should get 80% for distinction, what is equivalence class.
A. 23, 24, 25
B. 0, 12, 25
C. 30, 36, 39
D. 32,37,40

2. The following text will be used in Q.3 and Q.4 In a system designed to
work out the tax to be paid:
An employee has $4000 of salary tax free
The next $1500 is taxed at 10%
The next $28000 is taxed at 22%
Any further amount is taxed at 40%

3. To the nearest $ which of these is a valid Boundary Value
Analysis test case?
A. $1500
B. $32001
C. $28000
D. $33501

4. Which of these groups of numbers would fall into the same
equivalence class?
A. $5800; $28000; $32000
B. $0; $200; $4200
C. $5200; $5500; $28000
D. $28001; $32000; $35000

5. 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

6. Using the same specifications as question 5, 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

7. 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:
A. 1000, 5000, 99999
B. 9999, 50000, 100000
C. 10000, 50000, 9999
D. 10000, 99999
E. 9999, 10000, 50000, 99999, 10000

Comments