KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

Which of the following errors occur when there is a grammatical mistake in the code, such as a misspelling of a function name?

  1. Logical errors
  2. Linking errors
  3. Syntax errors
  4. Runtime errors

Getting Started

1 Like

Answer

Syntax errors

Reason — Syntax errors occur due to wrongly typed statements or grammatical mistakes in a programming language. For example, a misspelling of a function name such as writing pint() instead of print() results in a syntax error.

Answered By

2 Likes


Related Questions