Debugging & Error Analysis MCQs

Topic-wise practice questions for Problem Solving & Analytical Skills. Test your knowledge, check solutions on demand, and pace your preparation.

Zero-leak answer engine • Rate-limited explanations
Practice in Timed Mode
Q11medium
You are debugging a distributed system where two processes are waiting for each other to release a resource, causing the whole system to hang forever. This is called:
Q12medium
(Technique) Why is "Logging" usually preferred over "Print Statements" for debugging professional production applications?
Q13medium
(Code Error / Debugging) Identify the potential crash in this C-style code:

int *ptr = NULL;
if (condition) {
    ptr = &some_value;
}
print(*ptr);
Q14medium
When analyzing a "Stack Trace" after a crash, the function at the very **top** of the list usually represents:
Q15easy
What is a "Regression Bug"?
Q16hard
(Calculation/Logic) If a recursive function calls itself twice in every step (like Fibonacci) and has no base case, how fast will it crash with a "Stack Overflow"?
Q17easy
(Technique) In a debugger, what is the difference between "Step Over" and "Step Into"?
Q18easy
What is the difference between "Static Analysis" and "Dynamic Analysis" in error detection?
Q19medium
A production server is slowing down over several days until it eventually crashes. After a restart, it works fine for another few days. This pattern strongly suggests which type of error?
Q20medium
A bug that only appears when you turn on the compiler's "Optimization" flag is likely due to: