ISTQB Certified Tester Foundation Level v4.0 — Question 55
A requirement specifies that a certain identifier (ID) must be between 5 and 10 characters long, must contain only alphanumeric characters, and its first character must be a letter. As a tester, you want to apply one-dimensional equivalence partitioning to test this ID. This means that you have to apply equivalence partitioning individually: to the length of the ID, the type of characters contained within the ID, and the type of the first character of the ID. What is the number of partitions to cover?
Answer options
- A. 7
- B. 6
- C. 5
- D. 3
Correct answer: A
Explanation
The correct answer is 7 because there are different partitions for each requirement: lengths below 5, 5-10, above 10; character types (alphanumeric, non-alphanumeric); and first character types (letter, non-letter). The other options do not account for all the necessary partitions, thus failing to cover all cases.