Computer Science, asked by Anonymous, 1 year ago

What are the types of program errors?

Also Explain Each One

Have a great Day ^_^

Answers

Answered by lostboy12
2

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


Anonymous: Thank yOu
lostboy12: plzz mark brainliest
Anonymous: I am going to asking next question u should answer me then I will be mark as brainliest
lostboy12: okk
Anonymous: Quick Dear
Answered by EHSASS
3

                     ı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 ✿◕ ‿ ◕✿

Attachments:

Anonymous: Thank You
Similar questions