mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 19:59:36 +02:00
Added 2021-03-29 exam
This commit is contained in:
parent
d2b06855c6
commit
6be029493b
177 changed files with 1133 additions and 1628 deletions
53
Ingegneria del Software/0321_8/correct.txt
Normal file
53
Ingegneria del Software/0321_8/correct.txt
Normal file
|
@ -0,0 +1,53 @@
|
|||
<pre>
|
||||
connector InputInteger = input Integer;
|
||||
|
||||
connector OutputInteger = output Integer;
|
||||
|
||||
block C1
|
||||
|
||||
InputInteger u;
|
||||
|
||||
OutputInteger x;
|
||||
|
||||
...
|
||||
|
||||
end C1;
|
||||
|
||||
block C2
|
||||
|
||||
InputInteger u;
|
||||
|
||||
OutputInteger x;
|
||||
|
||||
...
|
||||
|
||||
end C2;
|
||||
|
||||
block C3
|
||||
|
||||
InputInteger u;
|
||||
|
||||
OutputInteger x;
|
||||
|
||||
...
|
||||
|
||||
end C3;
|
||||
|
||||
class System
|
||||
|
||||
C1 k1;
|
||||
|
||||
C2 k2;
|
||||
|
||||
C3 k3;
|
||||
|
||||
equation
|
||||
|
||||
connect(k1.x, k2.u);
|
||||
|
||||
connect(k2.x, k3.u);
|
||||
|
||||
connect(k3.x, k1.u);
|
||||
|
||||
end System;
|
||||
</pre>
|
1
Ingegneria del Software/0321_8/quest.txt
Normal file
1
Ingegneria del Software/0321_8/quest.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Un sistema consiste di tre componenti C1, C2, C3 connesse in una architettura ad anello dove l'output della componente C1 (rispettivamente C2, C3) è mandato all'input della componente C2 (rispettivamente C3, C1). Quale dei seguenti schemi Modelica meglio rappresenta l'architettura descritta ?
|
54
Ingegneria del Software/0321_8/wrong 1.txt
Normal file
54
Ingegneria del Software/0321_8/wrong 1.txt
Normal file
|
@ -0,0 +1,54 @@
|
|||
<pre>
|
||||
connector InputInteger = input Integer;
|
||||
|
||||
connector OutputInteger = output Integer;
|
||||
|
||||
block C1
|
||||
|
||||
InputInteger u;
|
||||
|
||||
OutputInteger x;
|
||||
|
||||
...
|
||||
|
||||
end C1;
|
||||
|
||||
block C2
|
||||
|
||||
InputInteger u;
|
||||
|
||||
OutputInteger x;
|
||||
|
||||
...
|
||||
|
||||
end C2;
|
||||
|
||||
block C3
|
||||
|
||||
InputInteger u;
|
||||
|
||||
OutputInteger x;
|
||||
|
||||
...
|
||||
|
||||
end C3;
|
||||
|
||||
class System
|
||||
|
||||
C1 k1;
|
||||
|
||||
C2 k2;
|
||||
|
||||
C3 k3;
|
||||
|
||||
equation
|
||||
|
||||
connect(k1.x, k1.u);
|
||||
|
||||
connect(k2.x, k2.u);
|
||||
|
||||
connect(k3.x, k3.u);
|
||||
|
||||
end System;
|
||||
|
||||
</pre>
|
53
Ingegneria del Software/0321_8/wrong 2.txt
Normal file
53
Ingegneria del Software/0321_8/wrong 2.txt
Normal file
|
@ -0,0 +1,53 @@
|
|||
<pre>
|
||||
connector InputInteger = input Integer;
|
||||
|
||||
connector OutputInteger = output Integer;
|
||||
|
||||
block C1
|
||||
|
||||
InputInteger u;
|
||||
|
||||
OutputInteger x;
|
||||
|
||||
...
|
||||
|
||||
end C1;
|
||||
|
||||
block C2
|
||||
|
||||
InputInteger u;
|
||||
|
||||
OutputInteger x;
|
||||
|
||||
...
|
||||
|
||||
end C2;
|
||||
|
||||
block C3
|
||||
|
||||
InputInteger u;
|
||||
|
||||
OutputInteger x;
|
||||
|
||||
...
|
||||
|
||||
end C3;
|
||||
|
||||
class System
|
||||
|
||||
C1 k1;
|
||||
|
||||
C2 k2;
|
||||
|
||||
C3 k3;
|
||||
|
||||
equation
|
||||
|
||||
connect(k1.x, k3.u);
|
||||
|
||||
connect(k3.x, k2.u);
|
||||
|
||||
connect(k2.x, k1.u);
|
||||
|
||||
end System;
|
||||
</pre>
|
Loading…
Add table
Add a link
Reference in a new issue