Explain why testing can only detect the presence of errors, not their absence.
What will be an ideal response?
Assume that exhaustive testing of a program, where every possible valid input is
checked, is impossible (true for all but trivial programs). Test cases either do not
reveal a fault in the program or reveal a program fault. If they reveal a program
fault then they demonstrate the presence of an error. If they do not reveal a fault,
however, this simply means that they have executed a code sequence that – for the
inputs chosen – is not faulty. The next test of the same code sequence – with
different inputs – could reveal a fault.
You might also like to view...
How can you check to see if the FastEthernet interface on a router is connected to the FastEthernet interface on another networking device?
What will be an ideal response?
Where can you find the best configuration software for a wireless NIC?
What will be an ideal response?
Which of the following is the correct statement to return JAVA?
a. toUpperCase("Java") b. "Java".toUpperCase("Java") c. "Java".toUpperCase() d. String.toUpperCase("Java")
Describe what problem occurs in the following code. What modifications should be made to it to eliminate the problem?
``` int[] numbers = {3, 2, 3, 6, 9, 10, 12, 32, 3, 12, 6}; for (int count = 1; count <= numbers.length; count++) System.out.println(numbers[count]); ```