Which of these “properties” of testing using stubs and drivers are correct?
a. Using drivers and stubs is a lot of work for not much gain.
b. Using drivers and stubs avoids trying to debug a large program all at once.
c. Testing the pieces is difficult to do in any significant way. You need the entire program to run a meaningful test.
d. Drivers run the pieces individually. They are temporary. They can be minimal, without i/o, having only data generating code, and not doing much (except possibly validating) with the information they return.
e. Stubs are short programs that are fairly easy to write. They return only minimum data necessary for the caller to be debugged.
b) d) e) are correct.
Explanation: This testing technique is essentially divide and conquer. You avoid testing a large program all at once, allowing the testing of the i/o routines, for example, with drivers to assure that they work properly.
You might also like to view...
Which of the following are class methods and which are object methods? How can you tell which are which?
Math.abs(-3); soundObj.play(); FileChooser.pickAFile(); pictureObj.show(); ColorChooser.pickAColor(); turtle1.turnLeft();
To manually adjust the width of a column, position the pointer over the vertical line between two column headings so that the pointer changes to a shape. _____ while you drag the vertical line left or right to manually adjust the width of the column.
A. Double-click the right mouse button B. Press and hold the right mouse button C. Double-click the left mouse button D. Press and hold the left mouse button
Office Web Apps are available for free personal use through Microsoft SkyDrive
Indicate whether the statement is true or false
________ means responding to risk by not taking a risky action.
A. Risk reduction B. Risk transference C. Risk acceptance D. Risk avoidance