CS FundamentalsVery hardGATE CS · Software Engineering · Advanced
A routine takes three integer inputs a, b, c, each with a valid range [min, max] with min < max - 1, and one boolean flag f. Under worst-case boundary value testing the ranged inputs take every combination of {min, min+1, nominal, max-1, max} and the flag takes both values. How many test cases are needed?
- A. 250
- B. 15
- C. 625
- D. 125
Correct answer: A. 250
Worst-case testing takes the Cartesian product of the 5 values of each of the 3 ranged inputs (125 combinations) and multiplies by the 2 flag values: 250. The one-at-a-time (normal) boundary method would need far fewer; 5^4 wrongly gives the flag five values.
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
- A configuration has 4 parameters with 3 possible values each. What is the minimum number of test cases needed to cover every pair of…
- A team of 6 developers is increased to 9 developers to catch up on a late project. If every pair of team members needs one communication…
- A mutation tool generated 60 mutants. Review shows 10 of them are equivalent mutants, and the current test suite kills 30 of the others…
- What is printed? python class S: def init(self): self.obs = [] def notify(self, x): for o in self.obs: o(x) log = [] def a(x)…
- What is printed? python class Cfg: inst = None def new(cls, args): if cls.inst is None: cls.inst = super().new(cls) return cls.inst def…
- A Kanban team's board holds on average 15 items (queued or in progress), and over a long period the team delivers 20 items in every 10…