Wiki source code of Beispiel Transport - Einsatz von Zufallsparametern
Last modified by Carina Enke on 14.01.2024
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{layout}} | ||
2 | {{layout-section ac:type="single"}} | ||
3 | {{layout-cell}} | ||
4 | As an example, a typical application task is created. The goal is to calculate the distance travelled by a vehicle based on speed and time. The speed is dependent on the vehicle type. | ||
5 | {{/layout-cell}} | ||
6 | {{/layout-section}} | ||
7 | |||
8 | {{layout-section ac:type="single"}} | ||
9 | {{layout-cell}} | ||
10 | |||
11 | |||
12 | (% class="wrapped" %) | ||
13 | |(% colspan="1" style="width:352px" %)(% colspan="1" %) | ||
14 | ((( | ||
15 | (% class="content-wrapper" %) | ||
16 | ((( | ||
17 | [[image:attach:Editor - Tab Variablen zur Beispielaufgabe_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] | ||
18 | ))) | ||
19 | )))|(% colspan="1" style="width:749px" %)(% colspan="1" %) | ||
20 | ((( | ||
21 | In the example, the [[text variable>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.Text Variables.WebHome||shape="rect"]] {transport} will be randomly initialised with one of the following values: "bike", "bus", or "train". The [[numerical variable>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.Numerische Variablen.WebHome]] {speed} is randomly selected from a value range. Thus, the value range for the speed {speed} should be set in dependence of the selected vehicle {transport}, since a "bike" is generally slower than a "train". | ||
22 | ))) | ||
23 | |(% style="width:352px" %)((( | ||
24 | (% class="content-wrapper" %) | ||
25 | ((( | ||
26 | [[image:attach:Editor - Beispiel einer Bedingung_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" height="501" width="377"]][[image:attach:Editor - weiteres Beispiel einer Bedingung_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" height="502" width="359"]] | ||
27 | ))) | ||
28 | )))|(% style="width:749px" %)((( | ||
29 | For the dependent value setting, we use the variable condition. In the condition, we can define the value range for the variable {speed} depending on the selected value of the variable {transport}. For the bike ({transport}="bike"), for example, a value range of 10 to 30 (km/h) was set. | ||
30 | ))) | ||
31 | |(% style="width:352px" %)((( | ||
32 | (% class="content-wrapper" %) | ||
33 | ((( | ||
34 | [[image:attach:Editor - Nutzung von Variablen in der Aufgabenstellung_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] | ||
35 | ))) | ||
36 | )))|(% style="width:749px" %)((( | ||
37 | The given values of the task are integrated into the task text by specifying the variable name ({transport}, {speed}, and {hours}). In the example, the variable is included in a task of the type [[calculation interaction>>doc:ONYX.Erstellung von Testinhalten.Aufgabentypen.Berechnungsaufgabe.WebHome]]. | ||
38 | |||
39 | The variable with the correct solution {distance} is bound to the gap. | ||
40 | ))) | ||
41 | |(% style="width:352px" %)((( | ||
42 | (% class="content-wrapper" %) | ||
43 | ((( | ||
44 | [[image:attach:Testrun - Beispielaufgabe im Testrun_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] | ||
45 | ))) | ||
46 | )))|(% style="width:749px" %)((( | ||
47 | One of the defined values will be randomly chosen for each participant and each test attempt. In the example, the value "bike" was randomly inserted, which is why a speed in the value range of 10 to 30 (km/h) was selected. | ||
48 | ))) | ||
49 | {{/layout-cell}} | ||
50 | {{/layout-section}} | ||
51 | {{/layout}} |