Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(SOFTWARE ENGINEERING BASED QUESTION) Consider the following simple program P that contains an error at line 3.A mutant M, obtained by replacing this line as

(SOFTWARE ENGINEERING BASED QUESTION)

Consider the following simple program P that contains an error at line 3.A mutant M, obtained by replacing this line as shown,is the correct program.The mutant operator used here to replace a variable by a constant from within a program.In C, this operator is named CRCR.Thus the error in the program is modelled by a mutation operator.

1 input x,y

2 if x

3 z=x*(y+x) <---- Z=x*(y+1)

4 else

5 z=x*(y-1)

Construct a test case t1 the causes p to fail and establish the relation P(t1)!=M(t1).Can u construct a test case t2 on which P is successful,but P(t2)!=M(t2) does not hold?Construct a test set T that is adequate with respect to decision coverage that does not reveal the error.Does any test in T distinguish M from P

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

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

1 How do you determine the need for life insurance?

Answered: 1 week ago