ExamGecko
Question list
Search
Search

Related questions











Question 265 - CTFL-2018 discussion

Report
Export

For a mandatory input field 'ZIP code' the following rules are given:

1 - The valid ZIP code format is 5 numeric digits

2 - The code has to exist in the pest office's official ZIP code list

Using equivalence classes partitioning, how many test cases are required to test this field?

A.
6
Answers
A.
6
B.
4
Answers
B.
4
C.
8
Answers
C.
8
D.
3
Answers
D.
3
Suggested answer: B

Explanation:

Equivalence partitioning is a technique to divide a set of possible inputs or outputs into classes that are expected to behave similarly or produce similar results. For each equivalence class, only one test case is required to represent the whole class. In this case, we can identify the following equivalence classes for the input field 'ZIP code':

Valid ZIP code format and valid ZIP code value (e.g., 12345)

Valid ZIP code format and invalid ZIP code value (e.g., 99999)

Invalid ZIP code format and valid ZIP code value (e.g., 1234)

Invalid ZIP code format and invalid ZIP code value (e.g., ABCDE)

Therefore, four test cases are required to test this field using equivalence partitioning.

asked 18/09/2024
Vicky Mukhy
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first