Analyst Testing Question: Download Test Analyst PDF

Consider these sets of values:
1. RED + WHEELS
2. RED + not WHEELS
3. not RED + WHEELS
4. not RED + not WHEELS
Assume the logic in the code is as follows:
If RED and WHEELS then
Take the photo
Else
Do not take the photo
Given this information, which sets of values provides the minimum tests to achieve 100%
decision/condition coverage?
A. 1 and 4
B. 1 and 2 or 1 and 3
C. 1, 2, 3 and 4
D. 2 and 3

Tweet Share WhatsApp