Câu 78: CTFL-V4-0: Certified Tester Foundation Level (CTFL) v4.0
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%…
Nội dung câu hỏi
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?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. 100.01, 499.99, 500.01
- B. 50.99, 500, 500.10 — đáp án hiện tại
- C. 99.99, 100, 500
- D. 0, 10, 50
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.