mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 17:19:37 +02:00
Add new ingsw questions
This commit is contained in:
parent
258ee4e2cf
commit
0873165c52
800 changed files with 5605 additions and 0 deletions
1
Ingegneria del Software/0120_18/correct.txt
Normal file
1
Ingegneria del Software/0120_18/correct.txt
Normal file
|
@ -0,0 +1 @@
|
|||
100%
|
9
Ingegneria del Software/0120_18/quest.txt
Normal file
9
Ingegneria del Software/0120_18/quest.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
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 - 2 <= 0) { if (x + y - 1 >= 0) return (1); else return (2); }
|
||||
else {if (x + 2*y - 5 >= 0) return (3); else return (4); }
|
||||
} /* f() */
|
||||
Si considerino i seguenti test cases: {x=1, y=2}, {x=0, y=0}, {x=5, y=0}, {x=3, y=0}.
|
||||
Quale delle seguenti è la branch coverage conseguita?
|
1
Ingegneria del Software/0120_18/wrong1.txt
Normal file
1
Ingegneria del Software/0120_18/wrong1.txt
Normal file
|
@ -0,0 +1 @@
|
|||
80%
|
1
Ingegneria del Software/0120_18/wrong2.txt
Normal file
1
Ingegneria del Software/0120_18/wrong2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
50%
|
Loading…
Add table
Add a link
Reference in a new issue