Types of programming Errors

SYNTAX-all programmes have a set of rules on what is and what is not allowed when forming a new line of code, just like grammar. for example when you want to display something on the screen, you put print(“display”). if you did not include the print or the ” then it would not work as its the wrong grammar

LOGIC-logic errors is when the code does not run in the way that it is meant to because of the way it was written.An example of a logic error would be if a programmer were to forget either an opening or closing bracket in front of or behind a mathematical expression while coding a calculator program.

RUN-TIME ERROR-When programming we use a language to speak to the computer. That language has syntax. If the rules of the syntax are broken, then the compiler complains and offers the term syntax error. In the same vein, all of the programming code that is written must be translated and compiled into something the computer can understand. If there are errors in that process the compiler complains and throws a compiler error. These errors are given types, numbers, and brief English explanations. They offer the engineer a way to debug their programs in an orderly fashion.

 

Advertisements

Leave a comment

Filed under Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s