Question
(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
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