exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 138 discussion

Actual exam question from Cisco's 200-901
Question #: 138
Topic #: 1
[All 200-901 Questions]

Why is refactoring done during test-driven development?

  • A. to enable larger objects and longer methods
  • B. to improve maintainability and readability
  • C. to ensure that the previous uses of the objects are explained
  • D. to ensure the duplication of essential code
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
aplicacion101
Highly Voted 7 months, 3 weeks ago
Selected Answer: B
https://methodpoet.com/refactoring-in-tdd/ The goal is to get the initial messy code into a state where you can easily add new features and write new tests. In other words, you refactor the code to make it more readable, robust, reusable, and maintainable. Refactoring should be an ongoing process of every developer over time. The goal of TDD should be to allow you to have a constant focus on writing production-quality code in the very first place. B is best of the options
upvoted 5 times
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago