CS FundamentalsVery hardProduct-company placement · ISTQB-style
A loan is approved if (salary ≥ ₹50,000 AND credit history is good) OR a guarantor is provided. Using a limited-entry decision table with 'don't care' entries, what is the smallest number of non-overlapping rules that fully covers the logic?
- A. 8
- B. 3
- C. 5
- D. 4
Correct answer: D. 4
Rules: guarantor yes (salary, credit don't care) → approve; no guarantor, salary yes, credit good → approve; no guarantor, salary yes, credit bad → reject; no guarantor, salary no (credit don't care) → reject. The two reject cases cannot merge, so 4 rules replace the 8 of the full table.
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
- An ATM state machine: inserting a card leads to '1st try'. A correct PIN in any try state leads to 'Access'; a wrong PIN moves 1st → 2nd →…
- 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 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…