Which of the following test techniques is the most appropriate one for testing the price computation?

A system computes prices for bus tickets.

The price depends on

– the passenger type (baby, child, adult, senior citizen, student, military)

– the travelling type (as single or in a group)

– the distance (zone 1. 2. 3)

– the kind of transport (ordinary, express)

Which of the following test techniques is the most appropriate one for testing the price computation?
A . Statement coverage
B . State transition testing
C . Equivalence partitioning
D . Use case testing

Answer: C

Explanation:

Equivalence partitioning is a technique that divides the input data and output results of a software component into partitions of equivalent data. Each partition should contain data that is treated in the same way by the component. Equivalence partitioning can be used to reduce the number of test cases by selecting one representative value from each partition. Equivalence partitioning is suitable for testing the price computation, as it can identify different partitions based on the passenger type, the travelling type, the distance and the kind of transport. Equivalence partitioning is not statement coverage, which is a technique that measures how many executable statements in a source code are executed by a test suite. Statement coverage is not appropriate for testing the price computation, as it does not consider the input data or output results. Equivalence partitioning is not state transition testing, which is a technique that models how a system transitions from one state to another depending on events or conditions. State transition testing is not relevant for testing the price computation, as it does not involve any states or transitions. Equivalence partitioning is not use case testing, which is a technique that tests how users interact with a system to achieve a specific goal. Use case testing is not applicable for testing the price computation, as it does not focus on a single function or component.

Reference: [A Study Guide to the ISTQB® Foundation Level 2018 Syllabus – Springer], Chapter 4, page 37-38.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments