Computer Applications
A program has compiled successfully without any errors. Does this mean the program is error free? Explain.
Input in Java
41 Likes
Answer
Successful compilation of the program only ensures that there are no syntax errors. Runtime and logical errors can still be there in the program so we cannot say that the program is error free. Only after comprehensive testing of the program, we can say that the program is error free.
Answered By
23 Likes
Related Questions
Explain the following terms, giving an example of each.
i. Syntax error
ii. Runtime error
iii. Logical error
A student was asked to write a program for computing the area of a rectangle and he, mistakenly, wrote the program to compute the perimeter of a rectangle. What kind of error is this?
If a student forgot to put a closing quotation mark on a string, what kind error would occur?
A program needed to read an integer, but the user entered a string instead, and an error occurred when the program was executed. What kind of error is this?