ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 35 - CTAL-TTA discussion

Report
Export

Consider the pseudo code provided below regarding a customer request for cash withdrawal from an ATM.

If the customer has sufficient funds in their account

OR the customer has the credit granted

THEN the ATM machine pays out the requested amount to the customer

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

A.
TC 1: Customer has sufficient funds. Credit has not been granted.
Answers
A.
TC 1: Customer has sufficient funds. Credit has not been granted.
B.
TC 2: Customer does not have sufficient funds. Credit has been granted.
Answers
B.
TC 2: Customer does not have sufficient funds. Credit has been granted.
C.
TC 3: Customer does not have sufficient funds. Credit has not been granted.
Answers
C.
TC 3: Customer does not have sufficient funds. Credit has not been granted.
D.
TC 4: Customer has sufficient funds. Credit has been granted.
Answers
D.
TC 4: Customer has sufficient funds. Credit has been granted.
Suggested answer: C

Explanation:

Multiple condition testing requires each possible combination of conditions to be tested, whereas modified condition/decision testing (MC/DC) requires each condition to be shown to independently affect the outcome. In the case of the ATM withdrawal, TC 3 (Customer does not have sufficient funds and credit has not been granted) would not result in the machine paying out, which is a result of applying multiple condition testing. However, for MC/DC, this test case would not be included because it doesn't provide an independent assessment of either condition's effect on the decision since both conditions are negative and the outcome is as expected (no payout).

asked 18/09/2024
Trung Phan
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first