Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Where's Debug? Each week, you will be asked to respond to the prompt or prompts in the discussion forum

Where's Debug? Each week, you will be asked to respond to the prompt or prompts in the discussion forum

Computer Science

Where's Debug? Each week, you will be asked to respond to the prompt or prompts in the discussion forum. Your initial post should be 75-150 words in length, and is due on Sunday. By Tuesday, you should respond to two additional posts from your peers. As we’ve seen, it’s very important to debug code prior to ‘going live’ to ensure it works as expected and won’t cause unintended difficulty once loaded in a browser. In your own words, provide a short summary of runtime, syntax, and logic errors based on the descriptions in the textbook giving an example of at least one.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Answer Preview

Answer:

Runtime errors, syntax errors, logical errors are all part of the programs and they commonly occur while developing programs or while writing code.

Runtime errors - These are the errors which may occur when the program is made to execute but there is some error and the furhter execution of the program is stopped. A runtime error may occur due to a error like, dividing a number with zero.

Syntax errors - This error occurs basically in the code of the program when the user mistypes something or forgets to write something that was important to be added in that very particular programming language. A syntax error may occur when the user forgots to add a semi-colon in the end of the statement or uses only a single equals to sign while during the comparison. The syntax errors prevents the code from compiling. The syntax should be as expected by the interpreter or compiler of a programming language otherwise syntax error will occur.

Logic errors - A logic error is an error which occurs when the user do something wrong while writing the working logic of the program. This error may cause the program to stop unexpectedly or may cause the program to produce an output which was not expected by the program to produce. This error may occur when user tries to access that index of the array which do not exist.

Related Questions