Bird
0
0

You want to improve test coverage for a function that accepts numbers from 1 to 100. Which systematic technique combination will best improve coverage?

hard📝 Application Q15 of 15
Testing Fundamentals - Functional Testing Techniques
You want to improve test coverage for a function that accepts numbers from 1 to 100. Which systematic technique combination will best improve coverage?
ATest only random numbers within 1 to 100 repeatedly.
BUse boundary value analysis for edges and equivalence partitioning for input groups.
CTest only the middle value 50 multiple times.
DTest only numbers divisible by 10.
Step-by-Step Solution
Solution:
  1. Step 1: Identify coverage goals

    We want to cover edge cases and different input groups systematically.
  2. Step 2: Match techniques to goals

    Boundary value analysis covers edges (1 and 100), equivalence partitioning divides inputs into groups.
  3. Step 3: Evaluate options

    Use boundary value analysis for edges and equivalence partitioning for input groups. combines both techniques, improving coverage best; others are incomplete or random.
  4. Final Answer:

    Use boundary value analysis for edges and equivalence partitioning for input groups. -> Option B
  5. Quick Check:

    Combine boundaries + partitions = best coverage [OK]
Quick Trick: Combine boundary and group tests for full coverage [OK]
Common Mistakes:
  • Relying on random or single-value tests
  • Ignoring input group diversity
  • Testing only multiples or arbitrary subsets

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes