# Classical Software Engineering

Computing

## Quiz 6 :Testing

Question Type
You have been testing a code artifact for 11 days and found two faults. What does this tell you about the existence of other faults?
Free
Essay

When a code artifact was tested for 11 days and only two faults are found than it reveals that:
• It may show the efficiency of development team efforts and the quality has increased.
• May be the product is tested in know environment with selected inputs only.
• The review processes- walkthrough and inspection is not done properly by the development team.
• If misappropriate number of faults are found, then management should check for all the code artifacts to find the faults and take corrective actions.
• The number of faults found in the given artifact should be compared with average faults found in other stage of development which will help to find the efficiency of fault detection.

Tags
Choose question tag
Can correctness proving solve the problem that the product as delivered to the client may not be what the client really needs? Give reasons for your answer.
Free
Essay

• Correctness proving is an important software engineering tool.
• It is a mathematical technique that shows that a software product is correct and it satisfies the specification. The correctness proving is done with design and code.
• The correctness proving determines that the product is correct and reduces the number of faults.
• According to Dijkstra, "Correctness proof is the way to raise the confidence level of the programmer that his program is correct".
Thus, correctness proving ensures that the product which is delivered to the client is the same what was really needed by the client. But even if a product is proven to be correct, still testing should be done.

Tags
Choose question tag
Consider the following code fragment: k = 0;g = 1; while (k Prove that this code fragment correctly computes g = n? if n is a positive integer.
Free
Essay

The given code fragment and the flow chart of the code fragment is given below:
k=0;
g=1;
while (k
{
k=k+1;
g=g*k;
}
When the code will be executed the variable g will contain the factorial of the variable n.
Assuming the value of n=5, each value of g and k in each loop is shown as follows:
For the above explanation it is seen that at the end of the loop termination the value of g contain the factorial of the variable n. Thus, the code fragment is correct.

Tags
Choose question tag
(Term Project) Explain how you would test the utility, reliability, robustness, performance, and correctness of the Chocoholics Anonymous product in Appendix A.
Essay
Tags
Choose question tag
How should Dijkstra's statement (Section 6.3) be changed to apply to correctness proofs rather than testing? Bear in mind the mini case study of Section 6.5.2.
Essay
Tags
Choose question tag
You are a rear admiral in the Valerian Navy in charge of developing the software for controlling the ship-to-ship missile of Problem 1.4. The software has been delivered to you for acceptance testing. What properties of the software do you test?
Essay
Tags
Choose question tag
Repeat the cost-benefit analysis of Problem 6.2 for a firm with only eight software professionals, including three managers. Assume that the other figures remain unchanged.
Essay
Tags
Choose question tag
Why is there a need to distinguish between a fault, a failure, and an error? Surely the use of the umbrella term defect simplifies matters?
Essay
Tags
Choose question tag
How are the terms correctness proving, verification, and validation used in this book?
Essay
Tags
Choose question tag
You are a member of the SQA group at Ye Olde Fashioned Software. You suggest to your manager that inspections be introduced. He responds that he sees no reason why four people should waste their time looking for faults when one person can run test cases on the same piece of code. How do you respond?
Essay
Tags
Choose question tag
A software development organization currently employs 91 software professionals, including 18 managers, all of whom develop as well as test software. The latest figures show that 26 percent of their time is spent on testing activities. The average annual cost to the company of a manager is $162,000, whereas nonmanagerial professionals cost$121,000 a year on average; both figures include overhead. Use cost-benefit analysis to determine whether a separate SQA group should be set up within the organization.
Essay
Tags
Choose question tag
Design and implement a solution to the Naur text-processing problem (Section 6.5.2) using the language specified by your instructor. Execute it against test data and record the number of faults you find and the cause of each fault (e.g., logic fault, loop counter fault). Do not correct any of the faults you detect. Now exchange products with a fellow student and see how many faults each of you finds in the other's product and whether or not they are new faults. Again record the cause of each fault and compare the fault types found by each of you. Tabulate the results for the class as a whole.
Essay
Tags
Choose question tag
Give an example of a software product that has been successfully maintained for many years, but has lost its usefulness and has been superseded by a totally different product.
Essay
Tags
Choose question tag
All 1539 stores in the Farm and Field organization are now to be connected by a communications network. A sales representative is offering you a 6-week free trial to experiment with the communications package he is trying to sell you. What sort of software tests would you perform and why?
Essay
Tags
Choose question tag
Consider the following code fragment: m = 1;q = 2; while (m Prove that this code fragment correctly computes q = 2 n if n ? {1, 2, 3,... }.
Essay