mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 23:59:37 +02:00
Downloaded 0721 questions
This commit is contained in:
parent
eb8ea2909c
commit
935d4532aa
162 changed files with 1435 additions and 2 deletions
4
0721_13/quest.txt
Normal file
4
0721_13/quest.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
Si consideri l'automa segunete:
|
||||
|
||||
|
||||
Quale dei seguenti modelli Modelica fornisce un modello ragionevole per l'automa di cui sopra.
|
16
0721_13/wrong1.txt
Normal file
16
0721_13/wrong1.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
function next
|
||||
input Integer x;
|
||||
output Integer y;
|
||||
algorithm
|
||||
y := 1 + x;
|
||||
end next;
|
||||
|
||||
class System
|
||||
Integer x;
|
||||
initial equation
|
||||
x = 0;
|
||||
equation
|
||||
when sample(0, 1) then
|
||||
x = next(pre(x));
|
||||
end when;
|
||||
end System;
|
16
0721_13/wrong2.txt
Normal file
16
0721_13/wrong2.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
function next
|
||||
input Integer x;
|
||||
output Integer y;
|
||||
algorithm
|
||||
y := x;
|
||||
end next;
|
||||
|
||||
class System
|
||||
Integer x;
|
||||
initial equation
|
||||
x = 0;
|
||||
equation
|
||||
when sample(0, 1) then
|
||||
x = next(pre(x));
|
||||
end when;
|
||||
end System;
|
16
0721_13/wrong3.txt
Normal file
16
0721_13/wrong3.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
function next
|
||||
input Integer x;
|
||||
output Integer y;
|
||||
algorithm
|
||||
y := 1 - x;
|
||||
end next;
|
||||
|
||||
class System
|
||||
Integer x;
|
||||
initial equation
|
||||
x = 0;
|
||||
equation
|
||||
when sample(0, 1) then
|
||||
x = next(pre(x));
|
||||
end when;
|
||||
end System;
|
Loading…
Add table
Add a link
Reference in a new issue