CS FundamentalsHardTCS NQT · Infosys pattern

A rule says: a loan is approved only if (credit score >= 700) AND (income >= 50000) AND (no existing default). Using a decision table that lists every combination of the three Boolean conditions, how many rules (columns) does a full decision table have, and how many of those rules approve the loan?

  1. A. 8 rules total; 4 approve the loan
  2. B. 3 rules total; 1 approves the loan
  3. C. 8 rules total; 7 approve the loan
  4. D. 8 rules total; exactly 1 approves the loan (all three conditions true)

Correct answer: D. 8 rules total; exactly 1 approves the loan (all three conditions true)

Three independent Boolean conditions give 2³ = 8 combinations (rules). Only the single combination where all three are true satisfies the AND condition and approves the loan; every other combination (at least one condition false) rejects it.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic