Given the following fragment of code, how many tests are required for 100% decision coverage?
discount = 0 order_quantity = 0 read order_quantity if order_quantity >= 20 then discount = 0.05 if order_quantity >= 100 then discount = 0.1 end_if end_if
- A. 3
- B. 4
- C. 5
- D. 2
Answer: Option A