CS FundamentalsModerateAccenture · Capgemini

A team writes acceptance criteria as 'Given a cart worth ₹900, When the user applies coupon SAVE10, Then the total is ₹810', and automates them before coding. Which practice is this?

  1. A. Behaviour-driven development (BDD) with Gherkin scenarios
  2. B. Pair programming
  3. C. Mutation testing
  4. D. Exploratory testing

Correct answer: A. Behaviour-driven development (BDD) with Gherkin scenarios

BDD expresses behaviour in a shared Given-When-Then language understood by business and developers and turns those scenarios into executable tests. TDD works at the unit level in the developers' own terms.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic