White-box test techniques · Question 41 of 60

A function contains two independent decisions without else branches: "if voucher, then lower price" followed by "if new customer, then send welcome mail". What is the minimum number of test cases for 100% statement coverage?

1 answer is correct. Hard Created with AI

Show answer

Answer

  • D 1

Explanation

One test with a voucher and a new customer executes both conditional statements and all others.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications