What Do You Know About Test Driven Development (Tdd)?

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Timmy198
T
Timmy198
Community Contributor
Quizzes Created: 577 | Total Attempts: 305,263
Questions: 10 | Attempts: 460

SettingsSettingsSettings
What Do You Know About Test Driven Development (Tdd)? - Quiz

Test Driven Development is a process in software engineering that works on the repetition of every short development cycle. It involves writing an automated test and producing minimum amount of code to write the test.


Questions and Answers
  • 1. 

     Which of these develop Test driven development ?

    • A.

      Kent Cook

    • B.

      Cook Martins

    • C.

      Kent Beck

    • D.

      Kettle Black

    Correct Answer
    C. Kent Beck
    Explanation
    Kent Beck is the correct answer because he is a renowned software engineer and one of the pioneers of Test Driven Development (TDD). He is known for his contributions to the Agile software development methodology and for authoring the book "Test-Driven Development: By Example," which popularized the concept of TDD. Beck has been actively involved in promoting and practicing TDD, making him a significant figure in the development of this approach.

    Rate this question:

  • 2. 

    When was TDD discovered ?

    • A.

      2004

    • B.

      2005

    • C.

      2007

    • D.

      2003

    Correct Answer
    D. 2003
    Explanation
    TDD, or Test-Driven Development, was discovered in 2003. This development technique involves writing tests before writing the actual code, helping to ensure the code is functional and meets the desired requirements. It is a popular practice in software development, as it promotes better code quality and maintainability.

    Rate this question:

  • 3. 

    Concerning TDD which of these is odd?

    • A.

      Write a test

    • B.

      Add a test

    • C.

      Delete a test

    • D.

      Run test

    Correct Answer
    C. Delete a test
    Explanation
    In Test-Driven Development (TDD), the process involves writing tests before writing the actual code. Writing a test is a fundamental step in TDD, as it helps define the desired behavior of the code. Adding a test is also a common practice when new functionality needs to be implemented or existing functionality needs to be expanded. Running the test is essential to ensure that the code passes the test and behaves as expected. However, deleting a test is considered odd in TDD because tests are meant to provide a safety net and ensure the code's correctness. Deleting a test removes this safety net and can lead to potential issues and regressions in the code.

    Rate this question:

  • 4. 

    The commonly applied structure for test cases usual have these except

    • A.

      Validation

    • B.

      Clean up

    • C.

      Delete

    • D.

      Execution

    Correct Answer
    C. Delete
    Explanation
    The commonly applied structure for test cases usually includes validation, clean up, and execution. However, deleting test cases is not typically part of the structure. Test cases are usually created to test specific functionality or scenarios, and once they have served their purpose, they are not deleted but rather archived or kept for future reference. Deleting test cases may result in loss of valuable information and make it difficult to track the history of testing efforts.

    Rate this question:

  • 5. 

    Concerning the TDD which of these is odd?

    • A.

      Software testing

    • B.

      Total testing

    • C.

      Compliance testing

    • D.

      Integration testing

    Correct Answer
    B. Total testing
    Explanation
    The odd one out in this list is "Total testing". The other options, software testing, compliance testing, and integration testing, are all specific types of testing that are commonly used in the context of Test-Driven Development (TDD). "Total testing" is not a recognized term in TDD or software testing practices, making it the odd one out.

    Rate this question:

  • 6. 

     The study that found that using TDD meant writing more tests was conducted in 

    • A.

      2004

    • B.

      2005

    • C.

      2006

    • D.

      2007

    Correct Answer
    B. 2005
    Explanation
    The study that found that using TDD meant writing more tests was conducted in 2005. This suggests that in the year 2005, a study was conducted to investigate the relationship between Test-Driven Development (TDD) and the number of tests written. The study likely found that practitioners of TDD tend to write more tests compared to those who do not use TDD. This finding could have implications for software development practices and highlight the importance of TDD in ensuring comprehensive test coverage.

    Rate this question:

  • 7. 

    One of the individual best practices in TDD is 

    • A.

      Keeping test oracles focused

    • B.

      Planning test factor

    • C.

      Grouping test oracles

    • D.

      Designing tests

    Correct Answer
    A. Keeping test oracles focused
    Explanation
    Keeping test oracles focused is one of the individual best practices in TDD. Test oracles refer to the expected outcomes or results of the tests. By keeping them focused, it means that the test cases should only focus on verifying a single specific behavior or functionality of the code. This helps in making the tests more clear, concise, and easier to understand. It also allows for easier maintenance and debugging of the tests, as any failures can be easily pinpointed to a specific oracle.

    Rate this question:

  • 8. 

    All of these are best practices in TDD except

    • A.

      Separating common set-up and teardown logic

    • B.

      Designing time related tests

    • C.

      Testing test codes

    • D.

      Assigning test codes

    Correct Answer
    A. Separating common set-up and teardown logic
    Explanation
    In Test-Driven Development (TDD), separating common set-up and teardown logic is actually a best practice. This allows for reusability and maintainability of the test code, as common logic can be easily shared across multiple tests. Designing time related tests is also a best practice, as it ensures that the behavior of the code under different time conditions is properly tested. Testing test codes is another best practice, as it ensures that the test code itself is functioning correctly. However, assigning test codes is not a best practice in TDD, as it is not clear what is meant by "assigning" in this context.

    Rate this question:

  • 9. 

    Tests involved in TDD sequence applied with minor semantic changes are usually 

    • A.

      5

    • B.

      6

    • C.

      4

    • D.

      3

    Correct Answer
    B. 6
    Explanation
    In Test-driven development (TDD), the sequence typically involves writing a failing test, then writing the code to make the test pass, and finally refactoring the code. The given sequence of numbers (5, 6, 4, 3) suggests that there are four tests involved in the TDD process. However, the correct answer is 6, which implies that there are six tests involved in TDD. This suggests that there might be additional tests or steps involved in the TDD sequence that are not mentioned in the given sequence of numbers.

    Rate this question:

  • 10. 

    . A practice to avoid in TDD is

    • A.

      Error tests

    • B.

      Independence of tests

    • C.

      Running tests

    • D.

      Building all knowing oracles

    Correct Answer
    D. Building all knowing oracles
    Explanation
    Building all knowing oracles is a practice to avoid in Test-Driven Development (TDD). An all knowing oracle is a test that checks the correctness of a system by comparing its output with the expected output, instead of focusing on the behavior of the system. This approach can lead to brittle tests that are tightly coupled to the implementation details, making it difficult to refactor or modify the code without breaking the tests. TDD encourages writing tests that focus on the behavior and functionality of the system, rather than relying on specific expected outputs.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 01, 2018
    Quiz Created by
    Timmy198
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.