Question

4. We have introduced the error, fault, and failure, please explain the relationship among this three terminology, and write a source code to mark where is the error happened, how the fault appear, and what is the failure caused, and also explain it. (10 points) 5. When do we stop to do testing? What is the stop reasons? (10 points) 6. What is the advantages and disadvantages of Test driven testing and model based testing? (10 points)
0 0
Add a comment Improve this question Transcribed image text
Answer #1
Fault is a wrong or mistaken step, process or Data definition in a computed program which causes the program to perform in an unintended or unanticipated manner. It can be caused due to the mistake from programmer's end or due to some constraints in the environment. It can be as simple as a NULL pointer to simple omission of a = condition. Faults aren't always harmful, there might be a scenario that fault never gets exposed. Faults if they get exposed will lead to an error. Here due to the error, program will not give the desired output.
In absence of any corrective action, it will lead to Failure. Our software will not work according to our needs and might lead to the system failure.
Fault-> Error -> Failure

In this piece of Code, Withdrawal should not be allowed if Balance is lesser or equal to 500
if (Balance<500) 
    {
    return false; 
    }
    else WithDraw();

There is a fault ,the missing = operator in the comparison.It should have been Balance <=500.

If at some point there is a balance of 500 and the check is done, the error will come out. The system will be in incorrect state. It should not have allowed withdrawal, but instead it did. If the withdrawal is allowed, the system is failing to work as it should and user sees the failure.

5) Testing is a complex process and if done properly it will never end. But in modern scenario where software releases are under tight deadlines, we can't give infinite amount of time for testing and thus it needs to end at some point of time.

  • Deadlines: The major factor affecting testing is deadlines. Once the deadline of software release or testing approaches, the testing has to finish.
  • Test cases completed with certain percentage passed: There will be test cases designed to check out different combinations. Once the test cases get executed and a satisfactory percentage of accuracy is acheived the testing ends
  • Test budget depleted: Testing is a resource intensive task and might be affected by budget constraints
  • Bug rate falls below a certain level: Based on the kind of accuracy rate desired for that particular scenario, if the bug rate falls below certain threshold, testing ends
  • Beta or alpha testing period ends
Add a comment
Know the answer?
Add Answer to:
4. We have introduced the error, fault, and failure, please explain the relationship among this three...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. Explain the relationship between sample size and standard error. 2. You have a normal population...

    1. Explain the relationship between sample size and standard error. 2. You have a normal population with a u = 50 and o = 9. You obtain all possible random samples, each with n = 30, from this population and calculate each sample's mean. What will the average value of all the sample means be? a) 50 b) 5.56 c) 30.49 d) Cannot tell without more information 3. You are sampling from a distribution of scores that is positively skewed....

  • please help with no 3,4,5 and 6 Thanks 1. What is standard error? Measure of statistical...

    please help with no 3,4,5 and 6 Thanks 1. What is standard error? Measure of statistical accuracy of an estimate, equal to the standard deviation of the theorental distribution of a large populanon of such estimates 2. What calculation is used to describe the variation in measurements. 3. In experiment 3.2. You will be measuring out 40ml of volume. How many times will you measure 40 ml? 4. What is the difference for each time you measure out 40ml? In...

  • PLEASE ANSWER ALL QUESTIONS: Your help is appreciated, THANK YOU :) 5. List four personal characteristics...

    PLEASE ANSWER ALL QUESTIONS: Your help is appreciated, THANK YOU :) 5. List four personal characteristics of a Professional Rescuer: 6. What are the two classifications of responders that are more advanced then an EMR? more advanced Pre-hospital Care Personnel? 7. Upon arrival at the scene of an emergency, the first responder’s first priority is— 8. What agency is concerned with regulations dealing with exposure to blood born pathogens? 9. What are the two major diseases of concern caused by...

  • -We focus on the behavioural consequences of satisfaction that relate to profit Three key behav ioural...

    -We focus on the behavioural consequences of satisfaction that relate to profit Three key behav ioural measures: 1. Customer retention; This is measured as: • Repeat purchase with durables such as cars • Continuity of use with utilities and a v ariety of serv ice prov iders 2. Share of category requirement (SCR) This is the proportion of category spending that goes to a particular brand This applies in repertoire categories such as groceries, hotels and supermarkets 3. Voice •...

  • I need help with this assignment in C++, please! *** The instructions and programming style detai...

    I need help with this assignment in C++, please! *** The instructions and programming style details are crucial for this assignment! Goal: Your assignment is to write a C+ program to read in a list of phone call records from a file, and output them in a more user-friendly format to the standard output (cout). In so doing, you will practice using the ifstream class, I'O manipulators, and the string class. File format: Here is an example of a file...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

  • World History

    QUESTION 1Confucius believed the age of the Shang and Zhou kings was a “Golden Age” in China, characterized by political stability and social harmony.  The selections we read from The Book of Songs provide evidence that supports his view. True FalseQUESTION 2Which of the following statements is supported by “Be a Scribe?”A.Egyptians had a more optimistic outlook on life than the MesopotamiansB.Egyptian society was not highly stratifiedC.Scribes did not enjoy elite status in Egyptian societyD.Most professions and trades pursued by commoners involved difficult...

  • Can you please explain in simple terms the methods of this experiment? I'm having difficulty visualizing...

    Can you please explain in simple terms the methods of this experiment? I'm having difficulty visualizing and understanding what is being done. I have copied and pasted some of the text from the article. Thank you! Abstract : Obesity, high-fat diets, and subsequent type 2 diabetes (T2DM) are associated with cognitive impairment. Moreover, T2DM increases the risk of Alzheimer's disease (AD) and leads to abnormal elevation of brain beta-amyloid levels, one of the hallmarks of AD. The psychoactive alkaloid caffeine...

  • The ACME Manufacturing Company has hired you to help automate their production assembly line. Cameras have...

    The ACME Manufacturing Company has hired you to help automate their production assembly line. Cameras have been placed above a conveyer belt to enables parts on the belt to be photographed and analyzed. You are to augment the system that has been put in place by writing C code to detect the number of parts on the belt, and the positions of each object. The process by which you will do this is called Connected Component Labeling (CCL). These positions...

  • Please let me know below question and explain it with attached content ! Questions 1.Help Alex...

    Please let me know below question and explain it with attached content ! Questions 1.Help Alex and Meghan brainstorm risks for each of the three sourcing alternatives. Write down all of your risks—don't be too judgmental or selective. 2.Conduct an FMEA. Build a thoughtful worksheet (see Table 5-4). You'll have to make judgment calls on severity, likelihood, and detectability. Compute appropriate RPNs. What actions would you suggest to mitigate these risks? 3.Considering short- and long-term implications, articulate your overall risk-mitigation...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT