CS FundamentalsHardService-company placement · ISTQB-style
A decision table has three yes/no conditions and four rules: R1: C1 = N (C2, C3 don't care) → A; R2: C1 = Y, C2 = N (C3 don't care) → B; R3: C1 = Y, C2 = Y, C3 = Y → C; R4: C1 = Y, C2 = Y, C3 = N → D. What is the minimum number of tests that exercises every rule, and how many of the 8 condition combinations does the table cover?
- A. 8 tests; all 8 combinations
- B. 4 tests; only 4 combinations
- C. 3 tests; 6 combinations
- D. 4 tests; all 8 combinations
Correct answer: D. 4 tests; all 8 combinations
One test per rule needs 4 tests. Each don't-care doubles the combinations a rule stands for: R1 covers 4, R2 covers 2, R3 and R4 one each, so 4 + 2 + 1 + 1 = 8: the table is complete. Expanding every don't-care would mean 8 tests, which adds no new rule.
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 state machine has transitions a: S1→S2, b: S2→S3, c: S3→S1 and d: S2→S1. How many test items does 0-switch (every transition) coverage…
- How many of these statements about data-flow coverage criteria are correct? 1. All-uses subsumes all-defs (when every definition reaches…
- The condition x > 5 and x >= 0 (x an integer) is mutated four ways. Which mutant is equivalent, so that no test can kill it?
- Under basic COCOMO organic mode (Effort = 2.4 × KLOC^1.05 person-months), how does productivity in LOC per person-month for a 100 KLOC…
- Application A maintains the Customer master data. A separate Payroll application reads that customer data from A's database to print…
- A customer-maintenance screen lets users add, change and delete customers, each with its own processing. A search screen shows customer…