Computer Science
Differentiate between a syntax error and a semantics error.
Python Data Handling
50 Likes
Answer
Syntax Error | Semantics Error |
---|---|
Syntax errors occurs when the rules of the programming language are violated. | Semantic errors occur when the statement are not meaningful. |
Example: x = false | Example: x * y = z |
Answered By
28 Likes
Related Questions
What are main error types? Which types are most dangerous and why?
Correct any false statements:
(a) Compile-time errors are usually easier to detect and to correct than run-time errors.
(b) Logically errors can usually be detected by the compiler.
Differentiate between a syntax error and a logical error in a python program. When is each type of error likely to be found?
What is the difference between an error and exception?