exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 1 discussion

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

Which two concepts describe test-driven development? (Choose two.)

  • A. User acceptance testers develop the test requirements.
  • B. It enables code refactoring.
  • C. Tests are created when code is ready for release.
  • D. Implementation is driven by incremental testing of release candidates.
  • E. Write a test before writing code.
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

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
Mormon
Highly Voted 4 years, 10 months ago
D & E is my opiniion
upvoted 17 times
...
psyborg
Highly Voted 4 years, 7 months ago
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
upvoted 9 times
...
wekoje1137
Most Recent 2 days, 8 hours ago
Selected Answer: BE
B,E is valid answer see full discussion: https://lc.cx/avOn4L
upvoted 2 times
...
kixat44247
2 weeks ago
Selected Answer: <h1><u>BE</u></h1>
The correct answer is BE.
upvoted 1 times
...
gabsirk
1 month ago
Selected Answer: BE
B,E are correct
upvoted 1 times
...
samtestking
4 months, 4 weeks ago
Selected Answer: C
test test test
upvoted 1 times
...
designated
6 months, 4 weeks ago
Selected Answer: BE
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.
upvoted 4 times
...
xenolo
7 months, 4 weeks ago
Answer (BE) is the right . Ty (Exam For Sure)
upvoted 1 times
...
sandaruwann654
1 year ago
Selected Answer: BE
B,E are correct
upvoted 1 times
...
eryxcs
2 years, 1 month ago
Answer B & E
upvoted 1 times
...
Mike_84
2 years, 8 months ago
Selected Answer: BE
Correct answer B & E
upvoted 1 times
...
jeanh101
2 years, 9 months ago
B and E
upvoted 1 times
...
XerAR
2 years, 9 months ago
Selected Answer: DE
I would say D and E
upvoted 1 times
...
macxsz
2 years, 10 months ago
Selected Answer: BE
B and E
upvoted 1 times
...
kibo_muc
2 years, 12 months ago
Selected Answer: BE
The main concept of TDD to write the tests BEFORE the code is written
upvoted 1 times
...
Lagann92
3 years ago
Selected Answer: BE
Agree with prev comments, B&E
upvoted 1 times
...
parkjunsung
3 years, 2 months ago
Selected Answer: BE
B, E as this is explained in the official book
upvoted 3 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