logo

Crowdly

If the previous code snippet is extended with its implementation as follows: ...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

If the previous code snippet is extended with its implementation as follows:

code snippet:

  function check(int8_t index, int8_t offset)

  {

    int8_t array[101];

    if (index > 100) index = 100;

    array[index] = offset;

  }

b) How many test cases would you need to achieve 100% code coverage? Specify

them. (2 Point)

c) Would the 100% code coverage assure you 100% fault coverage? Give an example

of an existing fault if not, or reason why that is the case. (2 Points)

Template:

b)

We need <n> test case(s), it is/they are:

<test_case_1>

...

<test_case_n>

c)

<yes_no>: <reason>

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.tu-ilmenau.de?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!