Software Quality Assurance Practice Exam

Question: 1 / 400

Which of the following is a debugging principle?

Fix the symptom, not the error

Change the object code, not the source code

Where there is one bug, there is likely to be another

The choice highlighting the principle "Where there is one bug, there is likely to be another" is correct because it reflects a common occurrence in software development and debugging. When a developer encounters a bug, it often suggests that there are underlying issues in the code that may not yet be apparent. This principle underscores the need for comprehensive testing and code review after discovering a bug, as multiple bugs can stem from the same root cause or might arise from similar flaws in logic or implementation.

This principle encourages developers to adopt a broader view when debugging, prompting them to investigate surrounding areas in the code for additional potential issues that may not have manifested yet but could lead to more bugs in the future. Recognizing this tendency can save time and effort in the long run, as addressing multiple bugs thoroughly can create a more stable and reliable software product.

The other options do not encapsulate sound debugging principles as effectively. Fixing just the symptom without addressing the underlying error might lead to repeated issues, modifying object code as opposed to source code can complicate version control and maintainability, and the notion that a fix has a 100% chance of being correct is overly optimistic; software development is inherently complex, and mistakes can easily recur.

Get further explanation with Examzify DeepDiveBeta

The likelihood of a fix being correct is 100%

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy