Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.
Debugging & Error AnalysisEasy
Q1. What is debugging?
- A.Finding and fixing code errors✓ Correct
- B.Deleting all program files now
- C.Writing new source code files
- D.Compiling the program to binary
Explanation
Identifies and removes errors.
Report an error in this question
Debugging & Error AnalysisEasy
Q2. What is syntax error?
- A.A runtime exception in program
- B.A logic mistake in the code
- C.A violation of grammar rules✓ Correct
- D.A design flaw in architecture
Explanation
Violates grammar rules.
Report an error in this question
Debugging & Error AnalysisEasy
Q3. What is runtime error?
- A.Error during code writing phase
- B.Error during code compilation
- C.Error during program execution✓ Correct
- D.Error in the syntax of code
Explanation
Occurs during execution.
Report an error in this question
Debugging & Error AnalysisEasy
Q4. What is logical error?
- A.A syntax mistake in the code
- B.A missing semicolon in the code
- C.An error during code compilation
- D.Runs fine but gives wrong results✓ Correct
Explanation
Wrong results without crashing.
Report an error in this question
Debugging & Error AnalysisEasy
Q5. What is a breakpoint?
- A.A syntax rule for statements
- B.A type of error in the code
- C.Execution pauses for inspection✓ Correct
- D.A point where code is broken
Explanation
Pauses for debugging.
Report an error in this question
Debugging & Error AnalysisEasy
Q6. First debugging step?
- A.Reproduce the error consistently✓ Correct
- B.Rewrite all the code from scratch
- C.Ignore the error and move on
- D.Delete the problematic file now
Explanation
Understand conditions causing bug.
Report an error in this question
Debugging & Error AnalysisEasy
Q7. What is print debugging?
- A.Printing the error log to a file
- B.Print statements to trace values✓ Correct
- C.Printing the source code on paper
- D.Printing the algorithm description
Explanation
Trace with print statements.
Report an error in this question
Debugging & Error AnalysisEasy
Q8. What is a stack trace?
- A.Function call sequence at error✓ Correct
- B.A variable type declaration
- C.A stack data structure diagram
- D.A sorting algorithm for stacks
Explanation
Call chain at error point.
Report an error in this question
Debugging & Error AnalysisEasy
Q9. What is an exception?
- A.A variable declaration statement
- B.A normal expected program flow
- C.Event disrupting flow, indicating error✓ Correct
- D.A design pattern for structure
Explanation
Signals errors.
Report an error in this question
Debugging & Error AnalysisEasy
Q10. Compiler errors identify?
- A.Syntax and type error locations✓ Correct
- B.Runtime errors only in code
- C.Performance bottlenecks found
- D.Logic errors in the algorithm
Explanation
Locate syntax/type errors.
Report an error in this question
Debugging & Error AnalysisMedium
Q11. What is rubber duck debugging?
- A.A rubber duck shaped mouse device
- B.A testing framework for web apps
- C.A waterfowl-based sorting algorithm
- D.Explaining code aloud to find errors✓ Correct
Explanation
Articulation reveals errors.
Report an error in this question
Debugging & Error AnalysisMedium
Q12. What is binary search debugging?
- A.The binary search algorithm itself
- B.Eliminate half the code each step✓ Correct
- C.Debugging binary executable files
- D.Searching binary number patterns
Explanation
Halves suspect area.
Report an error in this question
Debugging & Error AnalysisMedium
Q13. What is null pointer exception?
- A.Accessing a null reference value✓ Correct
- B.A logic error in computation
- C.A warning from the compiler
- D.A syntax error in the code
Explanation
Accessing null reference.
Report an error in this question
Debugging & Error AnalysisMedium
Q14. What is off-by-one error?
- A.Loop iterates one too many or few✓ Correct
- B.A network connectivity issue seen
- C.A rounding error in calculations
- D.A compilation error in the build
Explanation
Incorrect boundary conditions.
Report an error in this question
Debugging & Error AnalysisMedium
Q15. What is memory leak?
- A.Physical damage to memory chips
- B.Allocated memory that is never freed✓ Correct
- C.A security hack on the system
- D.Fast access to memory locations
Explanation
Wastes memory over time.
Report an error in this question
Debugging & Error AnalysisMedium
Q16. What is regression testing?
- A.The first test ever written for code
- B.User interface design testing only
- C.Re-testing after changes are made✓ Correct
- D.Performance benchmark testing only
Explanation
Verify existing features still work.
Report an error in this question
Debugging & Error AnalysisMedium
Q17. What is race condition?
- A.A type of loop in the code
- B.A competition between two programs
- C.A fast algorithm execution speed
- D.Depends on concurrent event timing✓ Correct
Explanation
Unpredictable timing causes bugs.
Report an error in this question
Debugging & Error AnalysisMedium
Q18. What is deadlock?
- A.A locked database table in use
- B.Processes waiting for each other✓ Correct
- C.A system crash due to hardware
- D.An infinite loop in the code
Explanation
Processes waiting for each other is the correct answer to this question.
Report an error in this question
Debugging & Error AnalysisMedium
Q19. What is step-through debugging?
- A.Running the entire program at once
- B.Walking through the office halls
- C.One line at a time in debugger✓ Correct
- D.Deleting steps from the program
Explanation
Detailed per-statement observation.
Report an error in this question
Debugging & Error AnalysisMedium
Q20. What is defensive programming?
- A.Being defensive about your code
- B.Avoiding writing any error handlers
- C.Anticipating and handling errors well✓ Correct
- D.Programming without any planning
Explanation
Anticipates problems.
Report an error in this question
Debugging & Error AnalysisHard
Q21. What is a Heisenbug?
- A.A syntax error in the source code
- B.A bug that changes when observed✓ Correct
- C.A normal reproducible program bug
- D.A hardware component malfunction
Explanation
Observation changes behavior.
Report an error in this question
Debugging & Error AnalysisHard
Q22. What is static analysis?
- A.Testing at runtime with real data
- B.Analyzing code without executing it✓ Correct
- C.User acceptance testing of the app
- D.Running the code to find bugs
Explanation
Examines code without execution.
Report an error in this question
Debugging & Error AnalysisHard
Q23. What is dynamic analysis?
- A.Code review by team members only
- B.Reading documentation about the code
- C.Analyzing behavior during execution✓ Correct
- D.Static code review without running
Explanation
Runtime behavior evaluation.
Report an error in this question
Debugging & Error AnalysisHard
Q24. What is buffer overflow?
- A.Writing beyond allocated memory area✓ Correct
- B.A database overflowing with data
- C.A network packet overflow error
- D.A full disk with no free space
Explanation
Exceeds buffer boundaries.
Report an error in this question
Debugging & Error AnalysisHard
Q25. What is fault localization?
- A.Finding faulty hardware components
- B.Locating the server in a datacenter
- C.Finding the compiler installation path
- D.Automatically identifying bug locations✓ Correct
Explanation
Statistical bug location ranking.
Report an error in this question
Debugging & Error AnalysisHard
Q26. What is delta debugging?
- A.Running multiple programs together
- B.Using version control for changes
- C.Minimizing failure-inducing input size✓ Correct
- D.Making small incremental changes
Explanation
Isolates minimal failing input.
Report an error in this question
Debugging & Error AnalysisHard
Q27. What is a sanitizer?
- A.A cleaning product for hardware
- B.A code formatting utility tool
- C.An antivirus software application
- D.Runtime tool detecting memory errors✓ Correct
Explanation
Detects memory errors at runtime.
Report an error in this question
Debugging & Error AnalysisHard
Q28. What is symbolic execution?
- A.Using symbols in variable names
- B.Deploying to production environment
- C.Symbolic values exploring all paths✓ Correct
- D.Code review by senior developers
Explanation
Explores all paths.
Report an error in this question
Debugging & Error AnalysisHard
Q29. What is a Mandelbug?
- A.A graphical rendering issue seen
- B.A simple reproducible error found
- C.A user interface display problem
- D.Complex chaotic causes, hard to fix✓ Correct
Explanation
Complex non-deterministic causes.
Report an error in this question
Debugging & Error AnalysisHard
Q30. What is time-travel debugging?
- A.Predicting future bugs in advance
- B.Record execution, step backward✓ Correct
- C.Debugging legacy system software
- D.Debugging very old legacy code
Explanation
Enables backward stepping.
Report an error in this question