exam questions

Exam CTFL v4.0 All Questions

View all questions & answers for the CTFL v4.0 exam

Exam CTFL v4.0 topic 1 question 184 discussion

Actual exam question from ISTQB's CTFL v4.0
Question #: 184
Topic #: 1
[All CTFL v4.0 Questions]

You validate the correctness of price calculation in a food ordering application. The input parameter is the order amount (in $), and the result is the final price reflecting the discount. If the order amount is less than $100, the discount is not granted (0% discount). If the order amount is greater than $500, a 50% discount is granted. In other cases, the 10% discount is granted.

You apply equivalence partitioning for the “order amount” domain to check if discounts are granted correctly.

Which test data set achieves the highest coverage?

  • A. 100.01, 499.99, 500.01
  • B. 50.99, 500, 500.10
  • C. 99.99, 100, 500
  • D. 0, 10, 50
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DALY_AY
5 days, 18 hours ago
Selected Answer: B
Option B is the only one that includes test data covering all three distinct equivalence partitions (0% discount, 10% discount, and 50% discount scenarios)
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...