Need two answers here.
E. Write a test before writing code.
>> This one is obviously correct for test driven development (TDD).
B. It enables code refactoring.
>> As Leonhrz pointed out, refactoring can be done without TDD so it does not "enable" it - however it does make it much easier to refactor code since your test will prove if your refactor is successful.
Elimination:
A. User acceptance testers develop the test requirements.
>> This is actually Acceptance Test Driven Development (ATDD).
C. Tests are created when code is ready for release.
>> This is the complete opposite of TDD.
D. Implementation is driven by incremental testing of release candidates.
>> This almost sounds correct, but it implies the testing is only for release candidates.
https://www.tutorialspoint.com/software_testing_dictionary/release_candidate.htm
B, E are correct
Step 1. Write a test: Write a test that tests for the new class or function that you want to add to your code. Think about the class name and structure you will need in order to call the new capability that doesn’t exist yet—and nothing more.
Step 2. Test fails: Of course, the test fails because you haven’t written the part that works yet. The idea here is to think about the class or function you want and test for its intended output. This initial test failure shows you exactly where you should focus your code writing to get it to pass. This is like starting with your end state in mind, which is the most effective way to accomplish a goal.
Step 3. Write some code: Write only the code needed to make the new function or class successfully pass. This is about efficiency and focus.
Step 4. Test passes: The test now passes, and the code works.
Step 5. Refactor: Clean up the code as necessary, removing any test stubs or hard-coded variables used in testing. Refine the code, if needed, for speed.
DEVASC Training - Section 2 - Lesson 2.3 TDD
....(TDD) is a software-development methodology where you write the test code before the actual production code.
When code is developed,....Now step back, look at the whole codebase, and clean it up by refactoring.Refactoring the code before moving....
This section is not available anymore. Please use the main Exam Page.200-901 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Mormon
Highly Voted 4 years, 12 months agopsyborg
Highly Voted 4 years, 9 months agoRobert_James
Most Recent 3 weeks, 2 days agogabsirk
3 months agosamtestking
6 months, 3 weeks agodesignated
8 months, 3 weeks agoxenolo
9 months, 3 weeks agosandaruwann654
1 year, 2 months agoeryxcs
2 years, 3 months agoMike_84
2 years, 10 months agojeanh101
2 years, 11 months agoXerAR
2 years, 11 months agomacxsz
3 years agokibo_muc
3 years, 1 month agoLagann92
3 years, 2 months agoparkjunsung
3 years, 4 months agoFrank338
3 years, 5 months ago