Software quality terminology: in programming practice, what does the term “bug” mean?

Difficulty: Easy

Correct Answer: A logical error in a program

Explanation:


Introduction / Context:
The word “bug” is widely used in software engineering to mean a flaw that causes incorrect behavior. Understanding the difference between types of errors (syntax, semantic, logical, runtime) helps teams triage issues and improve software reliability.


Given Data / Assumptions:

  • “Bug” is general slang for a defect; contextually, most usage points to logic or behavioral errors.
  • Syntax errors are typically caught by compilers or linters before execution.
  • Documentation activities are not bugs.


Concept / Approach:
A logical error causes a program to run but produce wrong results because the algorithm or control flow is flawed. This differentiates it from syntax errors (violations of language grammar) and from intentional actions like documentation or optimization.


Step-by-Step Solution:
1) Evaluate each option against standard definitions.2) Option a matches the common meaning: a programming defect that breaks logic or expected behavior.3) Option b is too narrow; syntax errors are compiler-detected and not typically called “bugs.”4) Option c is unrelated to defects.5) Option d cannot be correct because c is not a bug.


Verification / Alternative check:
Issue trackers categorize bugs as defects, separate from tasks like “documentation” or “enhancement,” and from “build errors” caused by syntax issues.


Why Other Options Are Wrong:
Syntax errors stop compilation (option b) and are usually not labeled runtime “bugs.” Documentation (option c) is a process, not a defect. “All of the above” (option d) fails because c is invalid.


Common Pitfalls:
Equating any compiler diagnostic with a bug, or calling request-for-change items “bugs.” Bugs refer to defects in functionality or reliability.


Final Answer:
A logical error in a program

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion