Explain five kinds of program faults Software Testing and Qu
Explain five kinds of program faults.
Software Testing and Quality Assurance: Theory and Practice
Solution
program fault:an incorrect process in a program lead to abnormal behaviour of the program which is known as
program fault
types of program faults are
1)defects: these are the mistakes done in code like logical errors
2)errors: these errors are caused by defects due to this program will close abnormaly
3)exceptions:there is chance unchecked exceptions and checked exceptions,due improper handling of code
for example: c=a/0; which is wrong statement it should be kept in try catch blocks to handle error
4)bug: bug is a tiny unwanted result ,it will modify the output
5)failure: it means the output which is not staisfied by the user which is want causes failure.
