ExamGecko
Home Home / Scrum / PSD
Question list
Search
Search

Question 87 - PSD discussion

Report
Export

Why does a test written using TDD always fail?

A.
Because testers are terrible coders
Answers
A.
Because testers are terrible coders
B.
Because the tests are checked in before the code exists
Answers
B.
Because the tests are checked in before the code exists
C.
Because the product code to satisfy the test doesn't exist yet
Answers
C.
Because the product code to satisfy the test doesn't exist yet
D.
Because the test needs to be refactored
Answers
D.
Because the test needs to be refactored
Suggested answer: C

Explanation:

TDD stands for test driven development. It makes developers think before starting to code. This leads to better organized code. It requires the developer to write the code for the test first, the test fails because the code it's testing doesn't exist yet.

asked 23/09/2024
Dean Pillay
47 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first