Debugger is a program that
2014
Debugger is a program that
- A.
allows to examine and modify the contents of registers
- B.
does not allow execution of a segment of program
- C.
allows to set breakpoints, execute a segment of program and display contents of register
- D.
All of the above
Attempted by 120 students.
Show answer & explanation
Correct answer: C
Answer: allows to set breakpoints, execute a segment of program and display contents of register
Why this is correct:
Set breakpoints: debuggers let you pause execution at specified points so you can inspect program state.
Execute or step through code: you can run a segment, step into/over instructions or continue from a breakpoint to control execution flow.
Inspect registers and memory: debuggers display (and often allow modification of) register and memory contents to help diagnose issues.
Why the other statements are not fully correct:
Stating only that a debugger allows examining and modifying registers is true but incomplete; it omits breakpoint and execution control features.
Claiming that a debugger does not allow execution of a segment of program is incorrect because controlling and executing segments is a core debugger capability.
Therefore, selecting all statements as true is wrong because one statement is false.
Summary: A debugger is a tool that lets you control program execution (breakpoints and stepping) and inspect or modify the program state (registers, memory, variables), so the combined description above best matches the debugger's purpose.