Saved Bookmarks
| 1. |
When you try to execute a program, there are chances of errors at various stages, Mention the types of errors and explain. |
|
Answer» 1) syntax error : eg : 5=x 2) Logic error. If the programmer makes any logical mistakes, it is known as logical error. Eg: To find the sum of values A and B and store it in a variable C you have to write C=A+B. Instead of this if you write C=A*B, it is called logic error. 3) Runtime error : An error occured at run time due to inappropriate data. Eg: To calculate A/B a person gives zero to B. There is an error called division by zero error during run time. |
|