mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-03-14 13:06:14 +01:00
Add question 11-20 of 01/22 exam
This commit is contained in:
parent
922b161e77
commit
604c2269b6
41 changed files with 332 additions and 2 deletions
1
Ingegneria del Software/11/correct.txt
Normal file
1
Ingegneria del Software/11/correct.txt
Normal file
|
@ -0,0 +1 @@
|
|||
A*(2 + p)
|
4
Ingegneria del Software/11/quest.txt
Normal file
4
Ingegneria del Software/11/quest.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
Si consideri un software costituito da due fasi F1 ed F2 ciascuna di costo A. Con probabilità p la fase F1 deve essere ripetuta (a
|
||||
causa di change requests) e con probabilità (1 - p) si passa alla fase F2 e poi al completamento (End) dello sviluppo. Qual'eè il
|
||||
costo atteso per lo sviluppo del software seguendo il processo sopra descritto ?
|
||||
Scegli un'alternativa:
|
1
Ingegneria del Software/11/wrong 2.txt
Normal file
1
Ingegneria del Software/11/wrong 2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
A*(1 + p)
|
1
Ingegneria del Software/11/wrong.txt
Normal file
1
Ingegneria del Software/11/wrong.txt
Normal file
|
@ -0,0 +1 @@
|
|||
3*A*p
|
1
Ingegneria del Software/12/correct.txt
Normal file
1
Ingegneria del Software/12/correct.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Sviluppo plan-driven
|
2
Ingegneria del Software/12/quest.txt
Normal file
2
Ingegneria del Software/12/quest.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
Si pianifica di sviluppare un software gestionale per una università. Considerando che questo può essere considerato un
|
||||
sistema mission-critical, quali dei seguenti modelli di processi software generici è più adatto per lo sviluppo di tale software
|
1
Ingegneria del Software/12/wrong 2.txt
Normal file
1
Ingegneria del Software/12/wrong 2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Sviluppo Iterativo
|
1
Ingegneria del Software/12/wrong.txt
Normal file
1
Ingegneria del Software/12/wrong.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Sviluppo Agile
|
21
Ingegneria del Software/13/correct.txt
Normal file
21
Ingegneria del Software/13/correct.txt
Normal file
|
@ -0,0 +1,21 @@
|
|||
block MarkovChain
|
||||
//external function myrandom() returns a random real number in [0, 1]
|
||||
parameter Integer x0 = 0;
|
||||
OutputInteger x;
|
||||
algorithm
|
||||
when initial() then
|
||||
x := x0;
|
||||
elsewhen sample(0, 1) then
|
||||
if (myrandom() <= 0.8)
|
||||
then
|
||||
if (myrandom() <= 0.7)
|
||||
then
|
||||
x := 0;
|
||||
else
|
||||
x := 1;
|
||||
end if;
|
||||
else
|
||||
x := -1;
|
||||
end if;
|
||||
end when;
|
||||
end MarkovChain;
|
3
Ingegneria del Software/13/quest.txt
Normal file
3
Ingegneria del Software/13/quest.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
L'environment di un sistema software è costituito da uno user che, ogni untià di tempo (ad esempio, un secondo) invia al
|
||||
sistema tre numeri: -1, 0, 1, con probabilità, rispettivamente, 0.2, 0.56, 0.24.
|
||||
Quale dei seguenti modelli Modelica modella correttamente l'environment descritto sopra.
|
21
Ingegneria del Software/13/wrong 2.txt
Normal file
21
Ingegneria del Software/13/wrong 2.txt
Normal file
|
@ -0,0 +1,21 @@
|
|||
block MarkovChain
|
||||
//external function myrandom() returns a random real number in [0, 1]
|
||||
parameter Integer x0 = 0;
|
||||
OutputInteger x;
|
||||
algorithm
|
||||
when initial() then
|
||||
x := x0;
|
||||
elsewhen sample(0, 1) then
|
||||
if (myrandom() <= 0.8)
|
||||
then
|
||||
if (myrandom() <= 0.7)
|
||||
then
|
||||
x := 1;
|
||||
else
|
||||
x := 0;
|
||||
end if;
|
||||
else
|
||||
x := -1;
|
||||
end if;
|
||||
end when;
|
||||
end MarkovChai
|
21
Ingegneria del Software/13/wrong.txt
Normal file
21
Ingegneria del Software/13/wrong.txt
Normal file
|
@ -0,0 +1,21 @@
|
|||
block MarkovChain
|
||||
//external function myrandom() returns a random real number in [0, 1]
|
||||
parameter Integer x0 = 0;
|
||||
OutputInteger x;
|
||||
algorithm
|
||||
when initial() then
|
||||
x := x0;
|
||||
elsewhen sample(0, 1) then
|
||||
if (myrandom() <= 0.7)
|
||||
then
|
||||
if (myrandom() <= 0.8)
|
||||
then
|
||||
x := 0;
|
||||
else
|
||||
x := 1;
|
||||
end if;
|
||||
else
|
||||
x := -1;
|
||||
end if;
|
||||
end when;
|
||||
end MarkovChain;
|
1
Ingegneria del Software/14/correct.txt
Normal file
1
Ingegneria del Software/14/correct.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Testare l'interazione tra le componenti del sistema (cioè, integrazione di molte unità di sistema).
|
1
Ingegneria del Software/14/quest.txt
Normal file
1
Ingegneria del Software/14/quest.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Il system testing si concentra su:
|
1
Ingegneria del Software/14/wrong 2.txt
Normal file
1
Ingegneria del Software/14/wrong 2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Testare le interfacce per ciascuna componente.
|
1
Ingegneria del Software/14/wrong.txt
Normal file
1
Ingegneria del Software/14/wrong.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Testare le funzionalità di unità software individuali, oggetti, classi o metodi.
|
1
Ingegneria del Software/15/correct.txt
Normal file
1
Ingegneria del Software/15/correct.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Sviluppo Plan-driven.
|
2
Ingegneria del Software/15/quest.txt
Normal file
2
Ingegneria del Software/15/quest.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
Si pianifica lo sviluppo di un sistema software per controllare il sistema di anti-lock braking in un automobile. Quale dei
|
||||
seguenti è il tipico processo software usato per questo tipo di sistema software ?
|
1
Ingegneria del Software/15/wrong 2.txt
Normal file
1
Ingegneria del Software/15/wrong 2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Sviluppo Iterativo.
|
1
Ingegneria del Software/15/wrong.txt
Normal file
1
Ingegneria del Software/15/wrong.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Extreme programming.
|
1
Ingegneria del Software/16/correct.txt
Normal file
1
Ingegneria del Software/16/correct.txt
Normal file
|
@ -0,0 +1 @@
|
|||
img=https://imgur.com/undefined
|
3
Ingegneria del Software/16/quest.txt
Normal file
3
Ingegneria del Software/16/quest.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
img=https://imgur.com/sB0yXg9
|
||||
Lo State Diagram in figura descrive (in modo semplificato) una macchina distributrice di bevande. Quale dei
|
||||
seguenti Sequence Diagram è consistente con lo State Diagram in figura ?
|
1
Ingegneria del Software/16/wrong 2.txt
Normal file
1
Ingegneria del Software/16/wrong 2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
img=https://imgur.com/oqO8kfc
|
1
Ingegneria del Software/16/wrong.txt
Normal file
1
Ingegneria del Software/16/wrong.txt
Normal file
|
@ -0,0 +1 @@
|
|||
img=https://imgur.com/kAJWpZb
|
25
Ingegneria del Software/17/correct.txt
Normal file
25
Ingegneria del Software/17/correct.txt
Normal file
|
@ -0,0 +1,25 @@
|
|||
block MarkovChain
|
||||
//external function myrandom() returns a random real number in [0, 1]
|
||||
parameter Integer x0 = 0;
|
||||
parameter Integer xmax = 100;
|
||||
OutputInteger x;
|
||||
algorithm
|
||||
when initial() then
|
||||
x := x0;
|
||||
elsewhen sample(0, 1) then
|
||||
if (x < xmax)
|
||||
then
|
||||
if (myrandom() <= 0.9)
|
||||
then
|
||||
if (myrandom() <= 0.8)
|
||||
then
|
||||
x := x + 1;
|
||||
else
|
||||
x := max(0, x - 1);
|
||||
end if;
|
||||
else
|
||||
x := max(0, x - 1);
|
||||
end if;
|
||||
end if;
|
||||
end when;
|
||||
end MarkovChain;
|
10
Ingegneria del Software/17/quest.txt
Normal file
10
Ingegneria del Software/17/quest.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
Un'azienda decide di organizzare il processo di sviluppo di un grosso software in 101 phasi sequenziali, numerate da 0 a 100. La
|
||||
phase 0 è quella iniziale. La phase 100 è quella finale in cui lo sviluppo è completato. Tutte le fasi hanno circa la stessa durata.
|
||||
Alla fine di ogni fase viene eseguita una batteria di tests. I risultati del testing possono essere:
|
||||
a) si può passare alla fase successiva;
|
||||
b) bisogna ripetere la fase corrente;
|
||||
c) bisogna rivedere il lavoro fatto nella fase precedente (reworking).
|
||||
Dai dati storici è noto che la probabilità del caso a) è 0.72, del caso b) è 0.18 e del caso c) è 0.1.
|
||||
Allo scopo di stimare attraverso una simulazione MonteCarlo il valore atteso del tempo di completamento del progetto viene
|
||||
realizzato un modello Modelica del processo di sviluppo descritto sopra.
|
||||
Quale dei seguenti modelli Modelica modella correttamente il processo di sviluppo descritto sopra?
|
19
Ingegneria del Software/17/wrong 2.txt
Normal file
19
Ingegneria del Software/17/wrong 2.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
block MarkovChain
|
||||
//external function myrandom() returns a random real number in [0, 1]
|
||||
parameter Integer x0 = 0;
|
||||
parameter Integer xmax = 100;
|
||||
OutputInteger x;
|
||||
algorithm
|
||||
when initial() then
|
||||
x := x0;
|
||||
elsewhen sample(0, 1) then
|
||||
if (x < xmax)
|
||||
then
|
||||
if (myrandom() <= 0.8)
|
||||
then
|
||||
if (myrandom() <= 0.9)
|
||||
then
|
||||
x := x + 1;
|
||||
else
|
||||
x := max(0, x - 1);
|
||||
end if;
|
25
Ingegneria del Software/17/wrong.txt
Normal file
25
Ingegneria del Software/17/wrong.txt
Normal file
|
@ -0,0 +1,25 @@
|
|||
block MarkovChain
|
||||
//external function myrandom() returns a random real number in [0, 1]
|
||||
parameter Integer x0 = 0;
|
||||
parameter Integer xmax = 100;
|
||||
OutputInteger x;
|
||||
algorithm
|
||||
when initial() then
|
||||
x := x0;
|
||||
elsewhen sample(0, 1) then
|
||||
if (x < xmax)
|
||||
then
|
||||
if (myrandom() <= 0.9)
|
||||
then
|
||||
if (myrandom() <= 0.72)
|
||||
then
|
||||
x := x + 1;
|
||||
else
|
||||
x := max(0, x - 1);
|
||||
end if;
|
||||
else
|
||||
x := max(0, x - 1);
|
||||
end if;
|
||||
end if;
|
||||
end when;
|
||||
end MarkovChain;
|
2
Ingegneria del Software/18/correct.txt
Normal file
2
Ingegneria del Software/18/correct.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
Per ciascun requisito, dovremmo essere in grado di scrivere un inseme di test che può dimostrare
|
||||
che il sistema sviluppato soddisfa il requisito considerato.
|
2
Ingegneria del Software/18/quest.txt
Normal file
2
Ingegneria del Software/18/quest.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
Quale delle seguenti frasi meglio descrive il criterio di "requirements verifiability" che è parte della "requirements
|
||||
validation activity".
|
2
Ingegneria del Software/18/wrong 2.txt
Normal file
2
Ingegneria del Software/18/wrong 2.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
Per ciascuna coppia di componenti, dovremmo essere in grado di scrivere un insieme di test che può dimostrare
|
||||
che l'interazione tra le componenti soddisfa tutti i requisiti di interfaccia.
|
2
Ingegneria del Software/18/wrong.txt
Normal file
2
Ingegneria del Software/18/wrong.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
Per ciascuna componente del sistema, dovremmo essere in grado di scrivere un insieme di test che può
|
||||
dimostrare che essa soddisfa tutti i requisiti.
|
2
Ingegneria del Software/19/correct.txt
Normal file
2
Ingegneria del Software/19/correct.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
Costruire un modello di simulazione per i principali aspetti dei processi di business dell'azienda e per il
|
||||
sistema software da realizzare e valutare le migliorie apportate dal sistema software ai processi di business dell'azienda mediante simulazione
|
2
Ingegneria del Software/19/quest.txt
Normal file
2
Ingegneria del Software/19/quest.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
Una azienda finanziaria desidera costruire un sistema software per ottimizzare i processi di business. Quali delle seguenti
|
||||
attività può contribuire a validare i requisiti del sistema ?
|
1
Ingegneria del Software/19/wrong 2.txt
Normal file
1
Ingegneria del Software/19/wrong 2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Costruire un prototipo del sistema e valutarne i requisiti non funzionali usando i dati storici dall'azienda
|
1
Ingegneria del Software/19/wrong.txt
Normal file
1
Ingegneria del Software/19/wrong.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Costruire un prototipo del sistema e testarlo rispetto ai requisiti funzionali usando i dati storici dall'azienda.
|
47
Ingegneria del Software/20/correct.txt
Normal file
47
Ingegneria del Software/20/correct.txt
Normal file
|
@ -0,0 +1,47 @@
|
|||
: block CoffeeMachine
|
||||
parameter Real T = 1; // clock
|
||||
InputInteger Customer2Machine;
|
||||
OutputInteger Machine2Customer;
|
||||
/*
|
||||
0: nop
|
||||
1: enough coins inserted
|
||||
2: drink dispensed
|
||||
3: done
|
||||
*/
|
||||
Integer state;
|
||||
/*
|
||||
0: waiting for coins
|
||||
1: waiting for selection
|
||||
2: dispensing
|
||||
3: refund/change
|
||||
*/
|
||||
algorithm
|
||||
when initial() then
|
||||
state := 0;
|
||||
Machine2Customer := 0;
|
||||
elsewhen sample(0, T) then
|
||||
if (pre(state) == 0) and (Customer2Machine == 1)
|
||||
then // customer has inserted enough coins
|
||||
state := 1;
|
||||
Machine2Customer := 1;
|
||||
elseif (pre(state) == 1) and (Customer2Machine == 2) // drink selected
|
||||
then // drink selected
|
||||
state := 2; // dispensing drink
|
||||
Machine2Customer := 0;
|
||||
elseif (pre(state) == 1) and (Customer2Machine == 3) // cancel transaction
|
||||
then // refund
|
||||
state := 3; // refund/change
|
||||
Machine2Customer := 0;
|
||||
elseif (pre(state) == 2) // drink dispensed
|
||||
then // drink dispensed
|
||||
state := 3;
|
||||
Machine2Customer := 2;
|
||||
elseif (pre(state) == 3) // refund/change
|
||||
then // refund
|
||||
state := 0;
|
||||
Machine2Customer := 3; // done
|
||||
else state := pre(state);
|
||||
Machine2Customer := pre(Machine2Customer);
|
||||
end if;
|
||||
end when;
|
||||
end CoffeeMachine;
|
3
Ingegneria del Software/20/quest.txt
Normal file
3
Ingegneria del Software/20/quest.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
img=https://imgur.com/Wk63xgA
|
||||
Lo state diagram in figura descrive (in modo semplificato) una macchina distributrice di bevande. Quale dei seguenti
|
||||
modelli Modelica è plausibile per lo state diagram in figura?
|
47
Ingegneria del Software/20/wrong 2.txt
Normal file
47
Ingegneria del Software/20/wrong 2.txt
Normal file
|
@ -0,0 +1,47 @@
|
|||
block CoffeeMachine
|
||||
parameter Real T = 1; // clock
|
||||
InputInteger Customer2Machine;
|
||||
OutputInteger Machine2Customer;
|
||||
/*
|
||||
0: nop
|
||||
1: enough coins inserted
|
||||
2: drink dispensed
|
||||
3: done
|
||||
*/
|
||||
Integer state;
|
||||
/*
|
||||
0: waiting for coins
|
||||
1: waiting for selection
|
||||
2: dispensing
|
||||
3: refund/change
|
||||
*/
|
||||
algorithm
|
||||
when initial() then
|
||||
state := 0;
|
||||
Machine2Customer := 0;
|
||||
elsewhen sample(0, T) then
|
||||
if (pre(state) == 0) and (Customer2Machine == 1)
|
||||
then // customer has inserted enough coins
|
||||
state := 1;
|
||||
Machine2Customer := 1;
|
||||
elseif (pre(state) == 1) and (Customer2Machine == 2) // drink selected
|
||||
then // drink selected
|
||||
state := 2; // dispensing drink
|
||||
Machine2Customer := 0;
|
||||
elseif (pre(state) == 1) and (Customer2Machine == 3) // cancel transaction
|
||||
then // refund
|
||||
state := 3; // refund/change
|
||||
Machine2Customer := 0;
|
||||
elseif (pre(state) == 2) // drink dispensed
|
||||
then // drink dispensed
|
||||
state := 0;
|
||||
Machine2Customer := 2;
|
||||
elseif (pre(state) == 3) // refund/change
|
||||
then // refund
|
||||
state := 0;
|
||||
Machine2Customer := 3; // done
|
||||
else state := pre(state);
|
||||
Machine2Customer := pre(Machine2Customer);
|
||||
end if;
|
||||
end when;
|
||||
end CoffeeMachine;
|
47
Ingegneria del Software/20/wrong.txt
Normal file
47
Ingegneria del Software/20/wrong.txt
Normal file
|
@ -0,0 +1,47 @@
|
|||
block CoffeeMachine
|
||||
parameter Real T = 1; // clock
|
||||
InputInteger Customer2Machine;
|
||||
OutputInteger Machine2Customer;
|
||||
/*
|
||||
0: nop
|
||||
1: enough coins inserted
|
||||
2: drink dispensed
|
||||
3: done
|
||||
*/
|
||||
Integer state;
|
||||
/*
|
||||
0: waiting for coins
|
||||
1: waiting for selection
|
||||
2: dispensing
|
||||
3: refund/change
|
||||
*/
|
||||
algorithm
|
||||
when initial() then
|
||||
state := 0;
|
||||
Machine2Customer := 0;
|
||||
elsewhen sample(0, T) then
|
||||
if (pre(state) == 0) and (Customer2Machine == 1)
|
||||
then // customer has inserted enough coins
|
||||
state := 1;
|
||||
Machine2Customer := 1;
|
||||
elseif (pre(state) == 1) and (Customer2Machine == 2) // drink selected
|
||||
then // drink selected
|
||||
state := 2; // dispensing drink
|
||||
Machine2Customer := 0;
|
||||
elseif (pre(state) == 1) and (Customer2Machine == 3) // cancel transaction
|
||||
then // refund
|
||||
state := 0; // refund/change
|
||||
Machine2Customer := 0;
|
||||
elseif (pre(state) == 2) // drink dispensed
|
||||
then // drink dispensed
|
||||
state := 3;
|
||||
Machine2Customer := 2;
|
||||
elseif (pre(state) == 3) // refund/change
|
||||
then // refund
|
||||
state := 0;
|
||||
Machine2Customer := 3; // done
|
||||
else state := pre(state);
|
||||
Machine2Customer := pre(Machine2Customer);
|
||||
end if;
|
||||
end when;
|
||||
end CoffeeMachine;
|
|
@ -1,2 +1,2 @@
|
|||
img=https://i.imgur.com/F4evurl.jpg?
|
||||
img=https://i.imgur.com/F4evurl.jpg
|
||||
Gioele che tagga Sabrina
|
Loading…
Reference in a new issue