logo

Crowdly

Browser

Add to Chrome

Assume the following sample (pseudo) code snippet:  read(a, b); if (a == 2...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Assume the following sample (pseudo) code snippet: 

  1. read(a, b);
  2. if (a == 2 && b == 2)
  3.    c = a + b;
  4. else
  5.    c = 0;
  6. print(c);

Which of the mutants listed below would be found to be a killed mutant after applying the following test case?

Test case:

Input a: 2, Input b: 2, Output c: 4

0%
0%
0%
100%
More questions like this

Want instant access to all verified answers on moodle.ut.ee?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome