ExamGecko
Question list
Search
Search

Question 441 - 200-901 discussion

Report
Export

What is a characteristic of lest-driven development?

A.

It enables code refactoring.

Answers
A.

It enables code refactoring.

B.

User tests are created after deployment.

Answers
B.

User tests are created after deployment.

C.

Infrastructure testing is done at every stage.

Answers
C.

Infrastructure testing is done at every stage.

D.

Large updates are applied infrequently.

Answers
D.

Large updates are applied infrequently.

Suggested answer: A

Explanation:

Test-Driven Development (TDD) is a software development approach where tests are written before writing the actual code. TDD enables and encourages code refactoring because it ensures that tests are already in place to verify the correctness of the code after changes.

Red-Green-Refactor Cycle: TDD follows a cycle of writing a test (Red), writing code to pass the test (Green), and then refactoring the code while ensuring the test still passes (Refactor).

Refactoring Support: Because tests are written first, developers can confidently refactor code knowing that any changes that break functionality will be caught by the existing tests.

Test-Driven Development: TDD Overview

asked 07/10/2024
marek kus
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first