Bird
0
0

Consider two modules: ModuleA returns a number, and ModuleB doubles that number. Which integration test output is correct if ModuleA returns 5?

medium📝 Predict Output Q13 of 15
Testing Fundamentals - Testing Types and Levels
Consider two modules: ModuleA returns a number, and ModuleB doubles that number. Which integration test output is correct if ModuleA returns 5?
A10
B5
C25
DError
Step-by-Step Solution
Solution:
  1. Step 1: Understand module behavior

    ModuleA returns 5; ModuleB doubles input, so it should return 5 * 2 = 10.
  2. Step 2: Determine integration output

    When ModuleB receives 5 from ModuleA, output is 10, so integration test should expect 10.
  3. Final Answer:

    10 -> Option A
  4. Quick Check:

    5 doubled = 10 [OK]
Quick Trick: Multiply ModuleA output by 2 for ModuleB result [OK]
Common Mistakes:
  • Confusing input and output values
  • Multiplying instead of doubling
  • Expecting original value without processing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes