CS FundamentalsModerateTCS · Accenture · ISTQB-style
A price field accepts amounts from ₹0.01 to ₹999.99, with exactly two decimal places. Which pair of values are the invalid boundary values for boundary value analysis?
- A. ₹0.00 and ₹1,000.00
- B. ₹0 and ₹1,000
- C. ₹-0.01 and ₹999.98
- D. ₹0.02 and ₹999.98
Correct answer: A. ₹0.00 and ₹1,000.00
The step of the input is ₹0.01, so the values just outside the boundaries are 0.01 - 0.01 = 0.00 and 999.99 + 0.01 = 1,000.00. 0.02 and 999.98 are valid inside-boundary values; whole-rupee neighbours ignore the field's precision.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- For the function below, what are its cyclomatic complexity and the number of times a[j] > a[j + 1] is evaluated for the input [2, 1, 3, 4…
- Assertion (A): A suite with 100% branch coverage can still miss a defect where a required check was never coded. Reason (R): White-box…
- How many of these are static testing activities: (1) a peer code review, (2) running a linter such as ESLint, (3) executing unit tests…
- Assertion (A): A Fagan inspection is more formal than a walkthrough. Reason (R): An inspection is led by a trained moderator, follows…
- An integer quantity field accepts 1 to 100. The discount is 0% for 1-10, 10% for 11-50 and 20% for 51-100. Using two-value boundary value…
- A mutant changes if (x > 10 && x < 20) to if (x >= 10 && x < 20). Which single test input kills (distinguishes) this mutant?