5.133 · exercise

Basic quiz: debugging in the playground

Where a breakpoint stops a run, what reset keeps, the pause after 1,000,000 instructions, what a watch shows, the rows of the stack view, and what the diagnostic bundle does with your program.

0 of 7 correct

Multiple choice

You set a breakpoint on a line and press run. Where does the program stop?

Multiple choice

What does reset (Shift+F5) do with the breakpoints you have set?

Multiple choice

The word 3 sits at fp + 24 and the word 7 at fp + 28. What does a watch on [fp, 24] show?

Multiple choice

A run pauses with a message after 1,000,000 instructions. Which of these is true?

Multiple choice

A program starts with define(count_r, w19). Which watch shows the count?

Multiple choice

main opens with stp fp, lr, [sp, -32]! and then mov fp, sp. What does the stack row [fp, 8] hold?

Multiple choice

What happens when you press the diagnostic bundle button?