More Pitfalls: When the NXT Doesn't Behave as Expected (Part 2)

Self-Test Questions

<div class='qt-warning'>
JavaScript should be enabled to grade this question.
</div>

1 point

What is the process of walking through a program step-by-step called?

Spacing

Cycling

Tracing

Critically Evaluating

<div class='qt-warning'>
JavaScript should be enabled to grade this question.
</div>

1 point

When the NXT finishes running a program, we say that it “cleans up.” What happens during this clean up phase?

If the robot moved at all during the program, the NXT directs the robot to return to its starting point

The NXT turns off motors, lights, speaker, and resets display screen

The NXT sends a message back to your computer indicating that it is safe to quit from the software

The NXT clears its memory and powers down

<div class='qt-warning'>
JavaScript should be enabled to grade this question.
</div>

1 point

Suppose you wrote a program that consisted of just two image blocks - a smile immediately followed by a frown. Both image blocks have the "clear" box checked. What would you expect to see on your NXT screen when you run the program?

Nothing - the program would appear to start and then stop immediately

Just the smile - the NXT cleans up immediately after the last block and so the frown would not be displayed.

Just the frown - since clear means "erase the screen before drawing" the smile would be cleared away