Add new ingsw questions

This commit is contained in:
Marco Realacci 2023-06-24 13:42:48 +02:00
parent 258ee4e2cf
commit 0873165c52
800 changed files with 5605 additions and 0 deletions

View file

@ -0,0 +1 @@
Test set: {x=1, y=1}, {x=0, y=0}, {x=2, y=1}, {x=2, y=0}.

View file

@ -0,0 +1,8 @@
Il branch coverage di un insieme di test cases è la percentuale di branch del programma che sono attraversati da almeno un test case.
Si consideri la seguente funzione C:
-----------
int f(int x, int y) {
if (x - y <= 0) { if (x + y - 1 >= 0) return (1); else return (2); }
else {if (2*x + y - 5 >= 0) return (3); else return (4); }
} /* f() */
Quale dei seguenti test sets consegue una branch coverage del 100% ?

View file

@ -0,0 +1 @@
Test set: {x=1, y=1}, {x=2, y=2}, {x=2, y=1}, {x=2, y=0}.

View file

@ -0,0 +1 @@
Test set: {x=1, y=1}, {x=0, y=0}, {x=2, y=1}, {x=2, y=3}.