Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Q-1) Exercise on Data-Flow Coverage: Given the following code: begin read(x, y,z, w); //L-I if (z >= 0) then

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

Step by Step Solution

3.51 Rating (158 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intermediate Accounting

Authors: Loren A Nikolai, D. Bazley and Jefferson P. Jones

10th Edition

324300980, 978-0324300987

More Books

Students also viewed these Programming questions

Question

=+c) In what way do you think this may have impacted the results?

Answered: 1 week ago