What are the types of program errors?
Also Explain Each One
Have a great Day ^_^
Answers
Answer:
Types of program errors
We distinguish between the following types of errors:
Syntax errors: errors due to the fact that the syntax of the language is not respected.
Semantic errors: errors due to an improper use of program statements.
Logical errors: errors due to the fact that the specification is not respected.
From the point of view of when errors are detected, we distinguish:
Compile time errors: syntax errors and static semantic errors indicated by the compiler.
Runtime errors: dynamic semantic errors, and logical errors, that cannot be detected by the compiler (debugging).
hope its help you
plzz mark brainliest
thank you
-Viswajeet
ıllıllı ʜᴇʀᴇ ɪs ʏᴏᴜʀ ᴀɴsᴡᴇʀ ıllıllı
There are more than three. But I’ll name three for the sake of the question.
First we must know the difference between an Exception and an Error. An Exception is something that we expect might happen and will want to “catch”. And error is something that an application might not be able to catch. Or at least shouldn’t.
Here are three general errors:
1.) Semantic Errors - using program statements incorrectly
2.) Syntax Errors - used incorrect syntax
3.) Logical Errors - coding logic does not make sense
Most compilers do a decent job at telling you if you’ve made a syntactical error or even a semantic error (sometimes known as compiler errors). Logical errors on the other hand, not so much. This is because the compiler cannot read the developers mind and know what they are trying to code.
Other types of errors are more controversial since some people tend to think they are actually exceptions (ex. runt ime errors)
ᴇʜsᴀss ✿◕ ‿ ◕✿