Machine-translated by Google. Questions are authored in English.
Top

Discussion

Cascading errors after a single mistake are best reduced by

  • A.parsing the program a second time from the beginning
  • B.recovering to a synchronising point before reporting again
  • C.reporting only the very first error and then stopping
  • D.suppressing all error messages after the first ten are issued

Answer: B

Once the parser is out of step, subsequent messages are usually spurious. Resynchronising at a statement boundary before resuming keeps later reports meaningful. A compiler that floods the screen after one typing slip is worse than useless.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.