BCS-ISEB
ISEB-SWTINT1 · Question #39
Given the following fragment of code, how many tests are required for 100% decision coverage? discount = 0 order_quantity=0 real order_quantity if order_quantity >=20 then discount = 0.05 if…
Sign in or unlock ISEB-SWTINT1 to reveal the answer and full explanation for question #39. The question stem and answer options stay visible for context.
Test Techniques
Question
Given the following fragment of code, how many tests are required for 100% decision coverage? discount = 0 order_quantity=0 real order_quantity if order_quantity >=20 then discount = 0.05 if order_quantity >=100 then discount = 0.1 end_if end_if
Options
- A
- B
- C
- D
Unlock ISEB-SWTINT1 to see the answer
You've previewed enough free ISEB-SWTINT1 questions. Unlock ISEB-SWTINT1 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#decision coverage#white-box testing#branch coverage#control flow