✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
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>
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!