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

Discussion

The errors that can be pointed out by the compiler are

  • A.Semantic errors
  • B.Logical errors
  • C.Internal errors
  • D.Syntax errors

Answer: B

Correct answer: Syntax errors

A compiler checks the program against the grammar of the language, so it catches syntax errors - a missing semicolon, an unmatched bracket, an undeclared name - and refuses to produce code until they are fixed. A logical error breaks no rule of the language: the program compiles and runs, but computes the wrong thing, and only testing reveals it.

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

Post your comment

Please log in or register to post a comment.