Question: Q1: Consider the following program P with T test set 1 public boolean 1sPalindrom (String str) 21 3 boolean flagstrue} int i=0; 1 int justr.length()-1;

 Q1: Consider the following program P with T test set 1

Q1: Consider the following program P with T test set 1 public boolean 1sPalindrom (String str) 21 3 boolean flagstrue} int i=0; 1 int justr.length()-1; while(3) if(str.charAt(++) estr.charAt() retun lagi return flag: 4 Te t1: t2: t3: t4: If we made three mutants from the original program called M1, M2, M3, measure the adequacy of T for the original program Pabove? Program M2 1 public boolean IPalindrom (String ste) 21 1 boolean flagatal.se Program M1 public boolean Palindrom iString stel 1 boolean flag-tro ist gestraagth (1 : Viledij 1 if (str.chackt 13+) lestr.chata (1-1) return flag: Program M3 il public boolean Pelindre string stel 1 boolean flagetru int fest. Jength)-1; intjeste.length; ville) 1 str.chart i lestr.chart (-) return flagi tjeste dength while(i) 1 if (str.chartt (instr.chacht (1-1) return Itlag: return tlag: ES return flag return flug

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!