mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 12:39:37 +02:00
Add 21-50 question of 01/22
This commit is contained in:
parent
604c2269b6
commit
5c561b5538
121 changed files with 697 additions and 0 deletions
1
Ingegneria del Software/33/correct.txt
Normal file
1
Ingegneria del Software/33/correct.txt
Normal file
|
@ -0,0 +1 @@
|
|||
La variabile x è nell'intervallo [0, 5].
|
17
Ingegneria del Software/33/quest.txt
Normal file
17
Ingegneria del Software/33/quest.txt
Normal file
|
@ -0,0 +1,17 @@
|
|||
Si consideri il monitor seguente che ritorna true appena i requisiti per il sistema monitorato sono violati.
|
||||
<pre>
|
||||
block Monitor
|
||||
input Real x;
|
||||
output Boolean y;
|
||||
Boolean w;
|
||||
initial equation
|
||||
y = false;
|
||||
equation
|
||||
w = ((x < 0) or (x > 5));
|
||||
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/33/wrong 2.txt
Normal file
1
Ingegneria del Software/33/wrong 2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
La variable x è minore di 0.
|
1
Ingegneria del Software/33/wrong.txt
Normal file
1
Ingegneria del Software/33/wrong.txt
Normal file
|
@ -0,0 +1 @@
|
|||
La variabile x è fuori dall'intervallo [0, 5].
|
Loading…
Add table
Add a link
Reference in a new issue