Bird
0
0

A software tester finds a bug where the app crashes only when a specific input is given. What is the best combined approach to handle this?

hard📝 Application Q15 of 15
Testing Fundamentals - Why Software Testing Matters
A software tester finds a bug where the app crashes only when a specific input is given. What is the best combined approach to handle this?
AWrite a test case for that input and then debug the code to fix the crash
BIgnore the input and test other features
CFix the code without writing any test cases
DWrite test cases for all inputs except the problematic one
Step-by-Step Solution
Solution:
  1. Step 1: Understand testing role

    Writing a test case for the specific input helps reproduce and confirm the bug.
  2. Step 2: Understand debugging role

    Debugging the code to fix the crash addresses the root cause of the bug.
  3. Step 3: Combine testing and debugging

    Both steps together ensure the bug is found, fixed, and verified.
  4. Final Answer:

    Write a test case for that input and then debug the code to fix the crash -> Option A
  5. Quick Check:

    Test to find + Debug to fix = Correct approach [OK]
Quick Trick: Test to find bug, debug to fix bug [OK]
Common Mistakes:
  • Skipping test case creation for bugs
  • Fixing bugs without verifying
  • Ignoring problematic inputs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes