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?
- A. Behaviour-driven development (BDD) with Gherkin scenarios
- B. Pair programming
- C. Mutation testing
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A codebase reports 100% line coverage, but the mutation score is only 20%. What is the most likely explanation?
- In TDD, a developer has one failing test, assertEqual(add(2, 3), 5), and makes it pass with return 5. What is the next step according to…
- A legacy COBOL system with no documentation is analysed to recover its design (step 1), restructured and migrated to Java with the same…
- In software configuration management, the approved requirements specification is frozen and further changes need formal approval by a…
- A team records, in short version-controlled documents, why it chose PostgreSQL over MongoDB, the context, the options considered and the…
- A request passes through 6 microservices and is sometimes slow. Logs and per-service CPU metrics look normal. Which observability tool…