The computer stops at once and points at a line. Which error?
- A logic error
- A syntax error
- A slow computer
What does a trace table hold?
- Only the final output
- The list of keywords
- Each variable's value at each line
A logic error lets the program finish, but the answer is wrong.
Circle one: True False
A loop finishes quietly but totals 41 instead of 42. Which kind?
- A syntax error
- A logic error
- A power cut
A missing colon halts everything before anything runs. Which kind, and why?
- Syntax, since the rules broke
- Logic, since the answer is wrong
- Neither, since colons are optional
Where do you hunt first for a wrong-but-finished program?
- Add more colons everywhere
- Restart and hope
- Trace the lines where values change
Before running a short unknown program, what proves you grasp it?
- Reading its title twice
- A hand trace that predicts its printout
- Counting its lines
A friend blames line 9 for a crash flagged at line 4. What do you say?
- Trust the flagged line, since syntax errors point at the confusion
- Blame the last line of every program
- Ignore messages and rewrite everything