mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-07 04:19:37 +02:00
Added 07-21 exam
This commit is contained in:
parent
1a3767b4a9
commit
81bfdb2c34
180 changed files with 0 additions and 81 deletions
1
Ingegneria del Software/0721_31/correct.txt
Normal file
1
Ingegneria del Software/0721_31/correct.txt
Normal file
|
@ -0,0 +1 @@
|
|||
La variabile x è nell'intervallo [1, 4] oppure nell'intervallo [15, 20].
|
17
Ingegneria del Software/0721_31/quest.txt
Normal file
17
Ingegneria del Software/0721_31/quest.txt
Normal file
|
@ -0,0 +1,17 @@
|
|||
Si consideri il monitor seguente che ritorna true appena il sistema viola il requisito monitorato.
|
||||
<pre>
|
||||
block Monitor
|
||||
input Real x;
|
||||
output Boolean y;
|
||||
Boolean w;
|
||||
initial equation
|
||||
y = false;
|
||||
equation
|
||||
w = ((x < 1) or (x > 4)) and ((x < 15) or (x > 20));
|
||||
algorithm
|
||||
when edge(w) then
|
||||
y := true;
|
||||
end when;
|
||||
end Monitor;
|
||||
</pre>
|
||||
Quale delle seguenti affermazioni meglio descrive il requisito monitorato?
|
1
Ingegneria del Software/0721_31/wrong1.txt
Normal file
1
Ingegneria del Software/0721_31/wrong1.txt
Normal file
|
@ -0,0 +1 @@
|
|||
La variabile x è nell'intervallo [1, 4] e fuori dall'intervallo [15, 20].
|
1
Ingegneria del Software/0721_31/wrong2.txt
Normal file
1
Ingegneria del Software/0721_31/wrong2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
La variabile x è fuori dall'intervallo [1, 4] e fuori dall'intervallo [15, 20].
|
Loading…
Add table
Add a link
Reference in a new issue