Exam 200-901 All QuestionsBrowse all questions from this exam
Question 1

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

    Correct Answer: B, E

    Test-driven development (TDD) is a software development methodology that involves writing a test before writing the actual code. This ensures that the code is tested incrementally and helps in refining and improving it through continuous refactoring. By following these steps, TDD facilitates the creation of clean, efficient, and bug-free code. Therefore, enabling code refactoring and writing a test before writing code are two key concepts that describe TDD.

Discussion
calixuge99

At first, I was hesitant to go for an online platform but dumpsspot.com addressed my concerns and helped me pass Cisco 200-9011 test by 915/1000. I am very pleased with my results.

RequiumOptions: BE

B, E http://agiledata.org/essays/tdd.html

Dumpsvibe_com_examsOptions: BE

"E","B" is rite answer

designatedOptions: 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.

parkjunsungOptions: BE

B, E as this is explained in the official book

JTDEVOPSOptions: BE

From Devnet course : This is the principle of Test-Driven Development (sometimes called Test-First Development). The basic pattern of TDD is a five-step, repeating process: - Create a new test (adding it to existing tests, if they already exist). The idea here is to capture some requirement of the unit of application code you want to produce. - Run tests to see if any fail for unexpected reasons. If this happens, correct the tests. Note that expected failures, here, are acceptable (for example, if your new test fails because the function it is designed to test does not yet exist, that is an acceptable failure at this point). - Write application code to pass the new test. The rule here is to add nothing more to the application besides what is required to pass the test. - Run tests to see if any fail. If they do, correct the application code and try again. - Refactor and improve application code. Each time you do, re-run the tests and correct application code if you encounter any failures. I think the answers are B and E,

Frank338Options: BE

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....

TargaryenOptions: BE

Write a test first, code after. Code pass, refactor.

sandaruwann654Options: BE

B,E are correct

eryxcsOptions: BE

Answer B & E

Mike_84Options: BE

Correct answer B & E

jeanh101Options: BE

B and E

XerAROptions: DE

I would say D and E

macxszOptions: BE

B and E

kibo_mucOptions: BE

The main concept of TDD to write the tests BEFORE the code is written

Lagann92Options: BE

Agree with prev comments, B&E

CaptainPirateOptions: BE

Five steps of test-driven development There are 5 steps in the TDD flow: Read, understand, and process the feature or bug request. Translate the requirement by writing a unit test. If you have hot reloading set up, the unit test will run and fail as no code is implemented yet. Write and implement the code that fulfills the requirement. Run all tests and they should pass, if not repeat this step. Clean up your code by refactoring. Rinse, lather and repeat. https://developer.ibm.com/articles/5-steps-of-test-driven-development/