CSSE 376 -- Software Quality Assurance -- Spring 2007

                               Quiz 11
                        Tuesday, March 27, 2007



Name:_________________________________________    Grade:______________


1. Specify pairs of values for "a" and "b" that will test all of the
   branches of the program below.

   read a, b;
   while (a != b) {
      if (a < b) {
         b = b - a;
      } else {
         a = a - b;
      }
   }
   print a;







2. Specify all of the DU paths for the following program:

   1:   read a;
   2:   read b;
   3:   while (a != b) {
   4:      if (a < b) {
   5:         b = b - a;
   6:      } else {
   7:         a = a - b;
   8:      }
   9:   }
  10:   print a;










3. Specify test data that will cover all of the DU paths for the
   program above.






4. Specify a likely mutant of the program above. (Just specify the new
   line.)






5. Specify test data that will kill your mutant.