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?
- A. 8 rules total; 4 approve the loan
- B. 3 rules total; 1 approves the loan
- C. 8 rules total; 7 approve the loan
- 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.
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 password field must be 8–20 characters long. Using boundary value analysis on this single range, which set of test lengths is the…
- A use case diagram shows a base use case 'Place Order' with an arrow labelled <<extend>> pointing from 'Apply Discount Code' to 'Place…
- A state machine diagram for an Order has states New, Paid and Shipped, with a transition from New to Paid labelled 'payment confirmed /…
- In a class diagram, Student has an association to Course with multiplicity 0.. on the Student side and 0.. on the Course side…
- An activity diagram shows a fork bar splitting one flow into two concurrent activities (ValidateAddress and ChargeCard), which later…
- A class diagram shows Shape as an abstract class with an italicized name and an italicized method + area(): double, and Circle, Square as…