Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Program P1 integer A, B; input (A); while (A > 0) 1) 2) 3) 4) { 5) 6) 1; if (A 25) B = A
Program P1 integer A, B; input (A); while (A > 0) 1) 2) 3) 4) { 5) 6) 1; if (A 25) B = A * B; B 7) %3D 8) 9) 10) else 11) B = A + B; %3D 12) output (A, B); input (A); 13) } 14) 15) output ("Program ends."); end; 16) T = {ti=, t2=, t3=} 1. What is the statement domain for P1? Express as line numbers. Exclude syntactical markers, such as {, }, else, and end. 2. What is the statement coverage of T for P1? Express as an unsimplified fraction. 3. If the statement coverage of T for P1 is less than 100%, what test cases could you add to get 100% statement coverage? 4. What is the decision domain for P1? Express as "line number) decision". 5. What is the decision coverage of T for P1? Express as an unsimplified fraction. 6. If the decision coverage of T for P1 is less than 100%, what test cases could you add to get 100% decision coverage? Program P1 integer A, B; input (A); while (A > 0) 1) 2) 3) 4) { 5) 6) 1; if (A 25) B = A * B; B 7) %3D 8) 9) 10) else 11) B = A + B; %3D 12) output (A, B); input (A); 13) } 14) 15) output ("Program ends."); end; 16) T = {ti=, t2=, t3=} 1. What is the statement domain for P1? Express as line numbers. Exclude syntactical markers, such as {, }, else, and end. 2. What is the statement coverage of T for P1? Express as an unsimplified fraction. 3. If the statement coverage of T for P1 is less than 100%, what test cases could you add to get 100% statement coverage? 4. What is the decision domain for P1? Express as "line number) decision". 5. What is the decision coverage of T for P1? Express as an unsimplified fraction. 6. If the decision coverage of T for P1 is less than 100%, what test cases could you add to get 100% decision coverage
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started