Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program P1 1) integer A, B; 2) input (A); 3) while (A > 0) 4) { 5) B = 1; 6) if (A < 10)

Program P1

1) integer A, B;

2) input (A);

3) while (A > 0)

4) { 5) B = 1;

6) if (A < 10)

7) B = 0;

8) if (A < 20 or A > 25)

9) B = A * B;

10) else

11) B = A + B;

12) output (A, B);

13) input (A);

14) }

15) output (Program ends.);

16) end;

T = {t1=<1>, t2=<33>, t3=<-1>}

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?

7. What is the condition domain for P1? Express as line number) condition.

8. What is the condition coverage of T for P1? Express as an unsimplified fraction.

9. If the condition coverage of T for P1 is less than 100%, what test cases could you add to get 100% condition coverage?

Step by Step Solution

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

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

Compute an expression for P max t1st2 B(s) > x

Answered: 1 week ago

Question

Acceptance of the key role of people in this process of adaptation.

Answered: 1 week ago

Question

preference for well defined job functions;

Answered: 1 week ago