CS FundamentalsModerateHCL · Tech Mahindra pattern
In top-down integration testing, the top-level module is ready but the lower-level modules it calls are not. What must the testers write, and what would bottom-up integration need instead?
- A. Drivers for top-down; stubs for bottom-up
- B. Mocks for top-down; nothing for bottom-up
- C. Stubs for both
- D. Stubs for top-down; drivers for bottom-up
Correct answer: D. Stubs for top-down; drivers for bottom-up
Top-down testing replaces missing called modules with stubs (dummy callees). Bottom-up testing starts from the leaves and needs drivers (dummy callers) to invoke them. Swapping the two is the standard trap.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Mutation testing creates 50 mutants of a program. 5 of them are equivalent mutants (they behave identically to the original). The test…
- Before release, 120 defects are found in system testing and 30 in user acceptance testing. After release, customers report 50 more. What…
- Arrange these types of module coupling from WORST (tightest) to BEST (loosest).
- What is the cyclomatic complexity of this function, counting the conditional expression and the except clause as decisions? python def…
- How many of the following are white-box (structural) testing techniques? 1. Branch (decision) coverage 2. Basis path testing 3. Boundary…
- You cherry-pick commit X from branch feature onto main. Which statement is correct?