CS FundamentalsVery hardProduct-company placement · ISTQB-style
For the decision (A or B) and C, which test set (written as A, B, C) achieves MC/DC with only four tests?
- A. (T,F,T), (F,F,T), (F,T,T), (T,F,F)
- B. (T,T,T), (F,F,T), (T,F,F), (F,T,F)
- C. (T,F,T), (F,F,T), (T,T,F), (F,T,T)
- D. (T,F,T), (F,T,T), (F,F,F), (T,T,F)
Correct answer: A. (T,F,T), (F,F,T), (F,T,T), (T,F,F)
Each condition needs a pair differing only in that condition with different outcomes: A by (T,F,T)/(F,F,T), B by (F,T,T)/(F,F,T), C by (T,F,T)/(T,F,F). Each other set lacks such a pair for at least one condition, for example the third has none for C.
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 leap-year function follows the Gregorian rule (divisible by 4, except centuries, unless divisible by 400). Which test set has one year…
- On main, git revert HEAD~3..HEAD is run with no conflicts. What happens?
- main receives feature work only through merge commits (git merge --no-ff), plus a few direct hotfix commits. What does git log…
- What does this code print (lines joined by ' / ')? python handlers = {'+': lambda a, b: a + b} def fallback(): print('fallback') return…
- A Python app keeps a shared Settings object at module level in settings.py as a singleton. Most code imports it as app.settings, but one…
- What does this code print? python class Count: def init(s, n): s.i = 0; s.n = n def iter(s): return s def next(s): if s.i >= s.n: raise…