CS FundamentalsHardGATE CS · Software Engineering · Advanced
The decision (A and B) or (C and D) contains four conditions. What is the minimum number of test cases that achieves 100% modified condition/decision coverage (each condition independently shown to affect the outcome by a pair of tests that differ only in that condition)?
- A. 4
- B. 5
- C. 8
- D. 16
Correct answer: B. 5
MC/DC needs at least n + 1 tests for n conditions; a search over all 16 input combinations confirms that 5 suffice here (and 4 cannot). Full condition combinations would need 16 tests.
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 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…
- 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…