Bird
0
0

A developer writes code but the program crashes. Which step is part of debugging to fix this?

medium📝 Debug Q14 of 15
Testing Fundamentals - Why Software Testing Matters
A developer writes code but the program crashes. Which step is part of debugging to fix this?
ARun tests to find if the program crashes
BWrite more features before fixing the crash
CIgnore the crash and release the software
DCheck the error message and trace the code causing the crash
Step-by-Step Solution
Solution:
  1. Step 1: Identify debugging task

    Debugging involves checking error messages and tracing code to find the cause of crashes.
  2. Step 2: Eliminate incorrect options

    Running tests finds bugs but does not fix them. Writing features or ignoring crashes are wrong.
  3. Final Answer:

    Check the error message and trace the code causing the crash -> Option D
  4. Quick Check:

    Debugging = Trace and fix errors [OK]
Quick Trick: Use error messages to trace bugs [OK]
Common Mistakes:
  • Confusing testing with debugging
  • Skipping error analysis
  • Adding features before fixing bugs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes