Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 37
Which task is performed because the test-driven development approach is being used?
Answer options
- A. creating test scenarios based on continuous development
- B. writing code without committing any coding violations
- C. refactoring code that is covered by existing tests
- D. testing existing software before developing new code
Correct answer: C
Explanation
The correct answer is C because refactoring code is a key aspect of test-driven development, ensuring that existing tests validate changes. Options A and B do not specifically relate to the test-driven approach, while D refers to testing before new development, which contradicts the iterative nature of test-driven development.