Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Scrum Exam PSD Topic 4 Question 74 Discussion

Actual exam question for Scrum's PSD exam
Question #: 74
Topic #: 4
[All PSD Questions]

While practicing Test-Driven Development, what is done after the test fails? (choose the best answer)

Show Suggested Answer Hide Answer
Suggested Answer: B

Test-Driven Development (TDD) involves writing a failing test first, then writing the minimal code needed to make the test pass. This iterative process ensures code correctness and encourages better design.


Contribute your Thoughts:

Kirk
1 months ago
I'm going with B. Anything else just feels like you're not following the principles of TDD.
upvoted 0 times
...
Shakira
1 months ago
Haha, E is a good one! Refactoring the test so the code passes? That's like cheating, right?
upvoted 0 times
...
Kaitlyn
1 months ago
C? Really? Why would you run the test again if it already failed? That's a waste of time!
upvoted 0 times
Jerry
14 days ago
B) Write the minimum amount of product code to satisfy the test.
upvoted 0 times
...
...
Leota
1 months ago
Hmm, I'm torn between B and D. Isn't the whole point of TDD to write the simplest code first?
upvoted 0 times
Gerald
2 days ago
D) Implement the required functionality.
upvoted 0 times
...
Mi
16 days ago
B) Write the minimum amount of product code to satisfy the test.
upvoted 0 times
...
...
Winfred
2 months ago
B is the way to go! You don't want to overengineer, just write the minimum code to make the test pass.
upvoted 0 times
Annalee
19 days ago
User 3: D) Implement the required functionality.
upvoted 0 times
...
Merri
24 days ago
User 2: C) Run it again to make sure it really fails.
upvoted 0 times
...
William
1 months ago
User 1: B) Write the minimum amount of product code to satisfy the test.
upvoted 0 times
...
...
Sabra
2 months ago
But shouldn't we also consider C) Run it again to make sure it really fails before moving on?
upvoted 0 times
...
Felix
2 months ago
I agree with Tonette, that's what you do after the test fails.
upvoted 0 times
...
Tonette
2 months ago
I think the answer is B) Write the minimum amount of product code to satisfy the test.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77