Looking for Course 3234 test answers and solutions? Browse our comprehensive collection of verified answers for Course 3234 at ecourse.del.ac.id.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Perhatikan kode berikut:
Sub Prosedur1 (int x, int y)
{
int z;
if (x > 5) or (y<10) then
{
z = 1;
}
else
{
z=0;
}
print (z)
}
pilih test case yang memenuhi D/CCPerhatikan kode berikut: Sub Prosedur1 (int x, int y) { int z; if (x > 5) or (y<10) then { z = 1; } else { z=0; } print (z) } pilih semua test case yang memenuhi CC
Sebuah Decision hanya dapat memiliki 1 kondisi
All possible combinations of condition outcomes, in each decision should be covered at least once :
“Every branch is at least executed once and each decision takes on all possible outcomes” are requirements of:
Perhatikan kode berikut:
Sub Prosedur1 (int x)
{
int z=0;
if (x > 5) then
{
z = 1;
}
print (z)
}
untuk test case x = 3 maka statement coverage adalah 100%
Select one:Pada Coverage Testing, di-generate setidaknya satu test case untuk mengeksekusi setiap item sesuai dengan kriteria coverage
Perhatikan code berikut, dan pilih lah yang benar terkait code tersebut:
s:=0;d:=0;while (x<y) {
if (x+y < 100)
s:=s+x+y;
else
d:=d+x-y;x:=x+3;
y:=y+2;
}
return 0;
Yang tidak termasuk Control Flow Coverage antara lain:
Intuisi yang memotivasi white box testing bahwa fault yang ada pada code yang tereksekusi (ter-cover) akan dapat diungkap melalui failure yang disebabkannya.