Multiple choice technology testing

To test a function, the programmer has to write a _________ which calls the function to be tested and passes it test data

  1. Stub

  2. Driver

  3. Proxy

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A driver is a software component or test harness used in bottom-up integration testing to call the target function with test data and receive its output. Conversely, a stub is a dummy implementation called by the code under test to simulate lower-level dependencies.