QuestionQ14

VerifiedWhite-Box Test Techniques

Consider the pseudocode below for a customer's cash-withdrawal request from an ATM.

If the customer has sufficient funds in their account

OR the customer has been granted credit

THEN the ATM machine pays the requested amount to the customer

Which of the following test cases would result from applying multiple condition testing, but would not result from applying modified condition/decision testing?

Explanation

Multiple condition testing covers every combination of the two atomic conditions, including both sufficient funds and granted credit being true. For an OR decision, MC/DC requires tests that show each condition can independently change the decision outcome; the false/false, true/false, and false/true combinations provide that evidence. The true/true combination is unnecessary because changing either condition alone still leaves the decision true.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!