ExamGecko
Question list
Search
Search

Related questions











Question 290 - CTFL-2018 discussion

Report
Export

A car insurance policy has 3 rates of insurance depending on the age of the driver. For drivers aged between 17 and 25 inclusive they are charged at rate A, drivers aged between 26 and 50 inclusive are charged at rate B and those drivers aged over 50 are charged at rate C.

You are designing test cases, which of the following three ages would test all valid equivalence partitions and therefore test rate A, B and C?

A.
26, 45, 50.
Answers
A.
26, 45, 50.
B.
10, 21, 55.
Answers
B.
10, 21, 55.
C.
20, 35, 65.
Answers
C.
20, 35, 65.
D.
17, 25, 50.
Answers
D.
17, 25, 50.
Suggested answer: C

Explanation:

The three ages that would test all valid equivalence partitions and therefore test rate A, B and C are 20, 35 and 65. 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 age of the driver:

Valid age between 17 and 25 inclusive (rate A)

Valid age between 26 and 50 inclusive (rate B)

Valid age over 50 (rate C)

Invalid age below 17

Invalid age above 100

Therefore, three test cases are required to test all valid equivalence partitions, and any value within each class can be used as a representative value. For example, 20 for rate A, 35 for rate B, and 65 for rate C.

asked 18/09/2024
Adam Vce
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first