ITPEC FE Subject A October 2024 Question 38
Source exam: ITPEC FE Subject A October 2024Topic: Software Development
ITPEC FE Subject A October 2024 — Question 38 of 60
Stub vs Driver in testing — driver calls the module under test; stub is called by it.
- •Driver — passes arguments and calls the module being tested (used in bottom-up testing)
- •Stub — replaces a lower-level module that the tested module depends on (used in top-down testing)
Why not others:
- (a) Reversed — describes a stub, not a driver
- (c) Reversed — a stub does not call the module under test; it is called by it
- (d) A stub simulates dependent module behavior, not display/print results
Key rule: Driver drives from above (calls down), Stub stands in from below (fakes a dependency).
AI-generated — may contain errors
The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.
This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.