Q-1) Exercise on Data-Flow Coverage: Given the following code: begin read(x, y, z, w); if (z...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q-1) Exercise on Data-Flow Coverage: Given the following code: begin read(x, y, z, w); if (z >= 0) then w = z; //L-II while w 0 do begin //L-I Z := Z * w; W:= z; //L-III end; if (x < 0) then z++; output(x, y); end. a- Draw a flow-graph of the above code annotated with definitions, uses, and predicate uses. b- Give minimal length test paths for the program using All-Uses Criteria for variables z at L-I c- Give minimal length test paths for the program using All-Uses Criteria for variables w at L-III d- Give minimal length test paths for all-predicate uses of the variable w defined at L-II e- Give minimal length test paths for all DU-paths of the variable y defined at L-I Q-1) Exercise on Data-Flow Coverage: Given the following code: begin read(x, y, z, w); if (z >= 0) then w = z; //L-II while w 0 do begin //L-I Z := Z * w; W:= z; //L-III end; if (x < 0) then z++; output(x, y); end. a- Draw a flow-graph of the above code annotated with definitions, uses, and predicate uses. b- Give minimal length test paths for the program using All-Uses Criteria for variables z at L-I c- Give minimal length test paths for the program using All-Uses Criteria for variables w at L-III d- Give minimal length test paths for all-predicate uses of the variable w defined at L-II e- Give minimal length test paths for all DU-paths of the variable y defined at L-I
Expert Answer:
Related Book For
Intermediate Accounting
ISBN: 978-0324300987
10th Edition
Authors: Loren A Nikolai, D. Bazley and Jefferson P. Jones
Posted Date:
Students also viewed these programming questions
-
KYC's stock price can go up by 15 percent every year, or down by 10 percent. Both outcomes are equally likely. The risk free rate is 5 percent, and the current stock price of KYC is 100. (a) Price a...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
You need to write a paper about the leadership and your responsibility in an organization. Which types of problems can be occurred and how can you face them
-
Suppose that in Problem 12, a forecasting study determines that he probabilities of demand volume are Low = 0.2, Medium = 0.2, and High = 0.6. Using the techniques in Supplementary Chapter SC E,...
-
A polygon is convex if it contains any line segments that connects two points of the polygon. Write a program that prompts the user to enter the number of points in a convex polygon, then enter the...
-
Explain the purpose and nature of cutoff tests of cash balances.
-
Marvins Beach Cleaners is responsible for keeping the beach clean. Marvin estimates that he needs a minimum of two people on Monday; three people on Tuesday and Sunday; four people on Wednesday and...
-
The economic crisis of 2007-09 was deep and prolonged enough to be known as "The Great Recession" and was followed by what was, according to some, a long but unusually slow recovery marked by...
-
Ethan is the leader of a team with N members. He has assigned an error score to each member in his team based on the bugs that he has found in that particular team member's task. Because the error...
-
What is the difference between Wants and Needs?Why do we need Feedback loopswhat do they tell us Explain.
-
The manager of Rosfeld Fund Co. is evaluating three different bonds. Both the face value of bond A and B are $1000 and mature in 3 and 5 years, respectively. The face value of bond C is $500 and...
-
Material Aluminum Brass SOLIDS Copper Glass Gold Ice Iron Lead Nickel Silver Styrofoam Zinc Specific heat (J/kg.K) 921 402 377 840 126 2095 461 130 502 239 1131 390 A 0.81 kg hammer strikes a 21 g...
-
A (15.02 + 25.0) m = B=(-10.02 + 12.5 ) m 5. Find the angle a between A and the + axis and the angle between B and the + axis using trigonometry. Make a sketch of these two vectors on the same...
-
21. If the monetary base B = $20 billion, cr (the C/D ratio) is equal to 0.1 and rr (the R/D ratio) is equal to 0.3 then the money multiplier m equals and the money supply equals A) 5.4; $108 billion...
-
The following table shows the expected return and standard deviation of the returns on assets A and B: A B 0 0,35 0,25 E(R) 0,30 0,25 Obtain the expected return and standard deviation of the returns...
-
Uncle's Caf sells regular coffee, but decides they want to offer Latte's to the menu. They expect to sell one Latte for $4.00. They want to evaluate this decision using a break-even analysis and have...
-
Without solving, determine the character of the solutions of each equation in the complex number system. 3x 2 3x + 4 = 0
-
The appropriate method of amortizing a premium or discount on issuance of bonds is the effective interest method. Required 1. What is the effective interest method of amortization and how is it...
-
How are current assets defined and what are the major items that may be included in current assets? How are current liabilities defined? Give three examples of such liabilities.
-
The Voiture Company manufactures compact, energy efficient cars. On April 1, it purchased a machine for its assembly line at a contract price of $200,000 with terms of 2/10, n/30. The company paid...
-
Consider the simple linear regression model for the baseball data using Team ERA as the predictor. Find the value of the PRESS statistic and the $R^{2}$ based on PRESS for this model. What...
-
Consider the multiple linear regression model fit to the baseball data in Problem 3.41. Problem 3.41 Consider the 2016 major league baseball data in Table B.22. While team ERA0 was useful in...
-
Consider the multiple linear regression model for the rental price data in Problem 3.42. Problem 3.42 Table B.24 contains data on median family home rental price and other data for 51 US cities. Fit...
Study smarter with the SolutionInn App