mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 18:59:37 +02:00
Adapt to new bot structure
This commit is contained in:
parent
ff7e08ada9
commit
3f84e1d831
3414 changed files with 41525 additions and 709 deletions
5
legacy/Data/Questions/ingsw/1122_10/correct.txt
Normal file
5
legacy/Data/Questions/ingsw/1122_10/correct.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
int f(in x, int y)
|
||||
{
|
||||
assert( (x >= 0) && (y >= 0) && ((x > 3) || (y > 3)) );
|
||||
.....
|
||||
}
|
7
legacy/Data/Questions/ingsw/1122_10/quest.txt
Normal file
7
legacy/Data/Questions/ingsw/1122_10/quest.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
Pre-condizioni, invarianti e post-condizioni di un programma possono essere definiti usando la macro del C assert() (in <assert.h>). In particolare, assert(expre) non fa nulla se l'espressione expre vale TRUE (cioè non è 0), stampa un messaggio di errore su stderr e abortisce l'esecuzione del programma altrimenti.
|
||||
|
||||
Si consideri la funzione C
|
||||
|
||||
int f(int x, int y) { ..... }
|
||||
|
||||
Quale delle seguenti assert esprime la pre-condizione che entrambi gli argomenti di f sono non-negativi ed almeno uno di loro è maggiore di 3?
|
10
legacy/Data/Questions/ingsw/1122_10/wrong 1.txt
Normal file
10
legacy/Data/Questions/ingsw/1122_10/wrong 1.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
int f(in x, int y)
|
||||
|
||||
{
|
||||
|
||||
assert( (x >= 0) && (y >= 0) && ((x >= 3) || (y >= 3)) );
|
||||
|
||||
.....
|
||||
|
||||
}
|
9
legacy/Data/Questions/ingsw/1122_10/wrong 2.txt
Normal file
9
legacy/Data/Questions/ingsw/1122_10/wrong 2.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
int f(in x, int y)
|
||||
|
||||
{
|
||||
|
||||
assert( (x > 0) && (y > 0) && ((x >= 3) || (y > 3)) );
|
||||
|
||||
.....
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue