ExamGecko
Question list
Search
Search

Related questions











Question 204 - CTFL-2018 discussion

Report
Export

You have to specify test cases based on equivalence partitioning and boundary value analysis for an internet shop selling baby shoes The shop provides a selection of shoes based on the following input parameters:

- There are 4 different sizes, depending on the age of the baby. The system selects the appropriate size based on the following criteria:

Which of the following statements is true?

A.
The total number of combinations of valid equivalence classes of age and gender is 8.
Answers
A.
The total number of combinations of valid equivalence classes of age and gender is 8.
B.
There are two invalid equivalence classes for the age input parameter: age <= 0, and age > 25
Answers
B.
There are two invalid equivalence classes for the age input parameter: age <= 0, and age > 25
C.
All combinations of valid equivalence classes could be covered with 4 test cases.
Answers
C.
All combinations of valid equivalence classes could be covered with 4 test cases.
D.
All valid equivalence classes could be covered with 6 test cases.
Answers
D.
All valid equivalence classes could be covered with 6 test cases.
Suggested answer: A

Explanation:

The total number of combinations of valid equivalence classes of age and gender is eight. There are four valid equivalence classes for the age parameter, based on the criteria given in the image: size 1 (0 < age <= 4 months), size 2 (4 < age <= 8 months), size 3 (8 < age <= 15 months), and size 4 (15 < age <= 24 months). There are two valid equivalence classes for the gender parameter, based on the note given in the image: boy and girl. The total number of combinations of valid equivalence classes can be calculated by multiplying the number of valid equivalence classes for each parameter: 4 x 2 = 8.

B, C, and D are incorrect answers. B implies that there are two invalid equivalence classes for the age parameter: age <= 0, and age > 25, which is not true as there are three invalid equivalence classes: age <= 0, age > 0 and age <= 4 months, and age > 24 months. C implies that all combinations of valid equivalence classes could be covered with four test cases, which is not true as there are eight combinations of valid equivalence classes. D implies that all valid equivalence classes could be covered with six test cases, which is not true as there are four valid equivalence classes for the age parameter and two valid equivalence classes for the gender parameter.

asked 18/09/2024
HAO KANG SUNG
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first