adplus-dvertising
frame-decoration

Question

What is the purpose of using a test stub while testing code?

a.

To generate the test environment for a component to be tested.

b.

To simulate the function of a component not yet available.

c.

To compare test results with expected results.

d.

To achieve a standard test format.

Posted under Software Engineering

Answer: (b).To simulate the function of a component not yet available. Explanation:A test stub simulates the function of a component not yet available.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the purpose of using a test stub while testing code?

Similar Questions

Discover Related MCQs

Q. What is the influence of design technique used on the test strategy (top-down versus bottom-up)?

Q. What is the purpose of code inspection during the implementation phase?

Q. What are static analysis tools used for during the implementation phase?

Q. What is the purpose of test drivers during the implementation phase?

Q. What is the main focus of maintenance in software development?

Q. What is the purpose of regression testing?

Q. What is the retest-all approach in regression testing?

Q. What is the purpose of a regression test selection technique?

Q. What is a crucial factor in ensuring smooth progression in regression testing?

Q. What is the difference between traditional development and test-driven development?

Q. What is Test-Driven Development (TDD)?

Q. What is the purpose of the test in TDD (Test-Driven Development)?

Q. What happens when the initial test in TDD (Test-Driven Development) fails?

Q. How is the list of things to be done in TDD (Test-Driven Development) similar to the backlog used by architects while architecting a system?

Q. What is test-driven development?

Q. What is the role of JUnit in test-driven development?

Q. What are the steps involved in each iteration of test-driven development?

Q. What is the goal of test-driven development?

Q. What is the role of tests in test-driven development?

Q. What is test-driven development (TDD) a part of?