Wiki-Quellcode von Beispiel - Digging a hole

Version 114.3 von Carina Enke am 20.12.2023

Zeige letzte Bearbeiter
1 {{layout}}
2 {{layout-section ac:type="single"}}
3 {{layout-cell}}
4 \\
5 {{/layout-cell}}
6 {{/layout-section}}
7
8 {{layout-section ac:type="two_right_sidebar"}}
9 {{layout-cell}}
10 Die folgende Beispielaufgabe zeigt den Einsatz von Variablen zur Generierung von Zufallswerten in einer Berechnungsaufgabe. Der Teilnehmer soll in Abhängigkeit von gegebenen Werten, welche pro Versuch neu ermittelt werden, die Antwort berechnen.
11
12 Das Beispiel basiert auf dem von IMS publizierten Beispielinhalt "Digging a hole" zum Einsatz von [[IMS QTI Item Templates>>url:http://www.imsglobal.org/question/qtiv2p2/imsqti_v2p2_impl.html#3.7||shape="rect"]].
13 \\
14
15 [[image:attach:Testrun - Beispiel Zufallswerte_de.png]]
16
17 \\
18 {{/layout-cell}}
19
20 {{layout-cell}}
21 {{panel}}
22
23
24 {{toc/}}
25 {{/panel}}
26
27 {{panel borderColor="#ddd" borderStyle="solid" title="Verwandte Themen"}}
28 * [[doc:ONYX.ONYX Editor.Aufgaben.Variablen verwenden.Beispiele zum Einsatz von Variablen.Beispiel - Digging a hole.Variablen verwenden]]
29 * [[doc:ONYX.ONYX Editor.Aufgaben.Variablen verwenden.Beispiele zum Einsatz von Variablen.Beispiel - Digging a hole.Berechnungsaufgabe]]
30 * [[doc:ONYX.ONYX Editor.Aufgaben.Variablen verwenden.Beispiele zum Einsatz von Variablen.Beispiel - Digging a hole.Formelvergleich]]
31 {{/panel}}
32
33 {{panel borderColor="#ddd" borderStyle="solid" title="Weiterführende Informationen"}}
34 * [[MAXIMA Manual>>url:http://maxima.sourceforge.net/docs/manual/de/maxima.html||shape="rect"]]
35 * [[MAXIMA Good-Practice-Beispiele>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]]
36 * [[MAXIMA Systeminformationen>>url:http://maxima.sourceforge.net/||rel="nofollow" shape="rect" class="external-link"]]
37 {{/panel}}
38 {{/layout-cell}}
39 {{/layout-section}}
40
41 {{layout-section ac:type="single"}}
42 {{layout-cell}}
43 == Beispiel "Digging a hole" ==
44
45 (% class="wrapped" %)
46 |(% colspan="1" %)(% colspan="1" %)
47 (((
48 (% class="content-wrapper" %)
49 (((
50 [[image:attach:Editor - Aufgabentext_de.png]]
51 )))
52 )))|(% colspan="1" %)(% colspan="1" %)
53 (((
54 Legen Sie eine **Berechnungsaufgabe[[ >>doc:ONYX.ONYX Editor.Aufgaben.Variablen verwenden.Beispiele zum Einsatz von Variablen.Beispiel - Digging a hole.Berechnungsaufgabe]]**an. Im Aufgabentext werden alle Werte, die später mit Zufallswerten initialisiert werden sollen, durch Variablen ersetzt. Die Eintragung erfolgt durch einen selbstgewählten Variablen-Namen, welcher in geschweifte Klammern gesetzt wird. Im Beispiel werden folgende Variablen eingesetzt:
55
56 * Die Text-Variable {PEOPLE} soll zufällig mit dem Wert "men", "woman" oder "children" belegt werden.
57 * Die numerische Variablen {A}/{B} stehen für die Anzahl an Personen.
58 * Die numerische Variable {MIN} steht für die gegebene Zeit.
59
60 Die Antwort berechnet sich aus den gegebenen Werten. Auch hierfür wird später eine Variable angelegt:
61
62 * Die numerische Variable {ANSWER} steht für die zu berechnende Zeit.
63 )))
64 |(((
65 (% class="content-wrapper" %)
66 (((
67 [[image:attach:Editor - Variable People bearbeiten_de.png]]
68 )))
69 )))|(((
70 Alle benötigten Variablen werden im Tab //**Variablen**// angelegt. Folgend wird dies am Beispiel der Text-Variable {PEOPLE} erläutert:
71
72 * Legen Sie im Abschnitt //**Vor Anzeige verarbeitete Variablen**// eine neue Variable über den Button //**Neue Variable hinzufügen**// an.
73 * Vergeben Sie den Variablen-Namen** PEOPLE**. Bitte achten Sie auf die korrekte Schreibweise. Die Groß- und Kleinschreibung muss gleich zum Platzhalter sein.
74 * Da es sich um eine Textvariable handelt, wählen Sie als Typ **Text**.
75 * Die Wertsetzung erfolgt durch eine **Zufällige Auswahl** von vorgegebenen Begriffen.
76 * Geben Sie die Begriffe "**men**", "**woman**" und "**children**" an. Die Trennung der Werte erfolgt durch Zeilenumbruch oder Semikolon.
77 )))
78 |(% colspan="1" %)(% colspan="1" %)
79 (((
80 (% class="content-wrapper" %)
81 (((
82 [[image:attach:Editor - Variablenübersicht_de.png]]
83 )))
84 )))|(% colspan="1" %)(% colspan="1" %)
85 (((
86 Alle anderen Variablen werden ebenfalls angelegt:
87
88 * (((
89 Variable: {PEOPLE}, Typ: Text, Zufällige Auswahl: men; woman; children  
90 )))
91 * (((
92 Variable: {A}, Typ: Ganze Zahl, Wertebereich: min=2, max=4, step=1  
93 )))
94 * (((
95 Variable: {MIN}, Typ: Gleitkommazahl, Berechnung (MAXIMA): 120/{A}  
96 )))
97
98 Die Variable {B} soll zur Vereinfachung der Berechnung in Abhängigkeit der Variable {A} gesetzt werden. Daher wird die Variable {B} zunächst leer initialisiert und dann mit einer Bedingung auf entsprechende Werte gesetzt.
99
100 * (((
101 Variable: {B}, Typ: Ganze Zahl, Bedingung: 
102 IF A = 2 THEN B = Wertebereich: min=4, max=12, step=2 ELSE IF A = 3 THEN B = Zufällige Auswahl: 6; 12 ELSE IF A = 4 THEN B = Zufällige Auswahl: 8; 12  
103 )))
104
105 {ANSWER}, Ganze Zahl, Berechnung (MAXIMA): 120/{B}
106 )))
107 |(((
108 (% class="content-wrapper" %)
109 (((
110 [[image:attach:Editor - Aufgabentext mit Variable_de.png]]
111 )))
112 )))|(((
113 Die Variable wird in den Aufgabentext durch Angabe des Variablen-Namens {PEOPLE} eingebunden. Im Beispiel wird die Variable in eine Aufgabe vom Typ [[Berechnung (Lückentext) >>doc:ONYX.ONYX Editor.Aufgaben.Variablen verwenden.Beispiele zum Einsatz von Variablen.Beispiel - Digging a hole.Berechnungsaufgabe]]eingefügt.
114 )))
115 |(((
116 (% class="content-wrapper" %)
117 (((
118 [[image:attach:Testrun - Beispielaufgabe mit Zufallswerten_de.png]]
119 )))
120 )))|(((
121 Für den Testdurchlauf wird für jeden Teilnehmer und jeden Versuch zufällig einer der definierten Werte ausgewählt. Im Beispiel wurde zufällig der Wert "**woman**" eingesetzt.
122 )))
123 {{/layout-cell}}
124 {{/layout-section}}
125 {{/layout}}
126
127
128
129 {{layout}}
130 {{layout-section ac:type="two_right_sidebar"}}
131 {{layout-cell}}
132 The following sample task shows the use of variables to generate random values in a calculation interaction. The participant should calculate the answer depending on given values, which are redefined for each attempt.
133
134 This example is based on the example content "Digging a hole" published by IMS for the use of [[IMS QTI item templates>>url:http://www.imsglobal.org/question/qtiv2p2/imsqti_v2p2_impl.html#3.7||shape="rect"]].
135
136 \\
137
138 [[image:attach:Testrun - Beispiel Zufallswerte_de.png]]
139 \\
140 {{/layout-cell}}
141
142 {{layout-cell}}
143 {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Content"}}
144
145
146 {{toc/}}
147 {{/panel}}
148
149 {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Related topics"}}
150 * [[Variables>>url:https://www.bps-system.de/help/display/ONYXintern/.Variablen+verwenden+v8.X||shape="rect"]]
151 * [[Calculation interaction>>doc:ONYX.ONYX Editor.Aufgaben.Variablen verwenden.Beispiele zum Einsatz von Variablen.Beispiel - Digging a hole.Berechnungsaufgabe]]
152 * [[Formula comparison>>doc:ONYX.ONYX Editor.Aufgaben.Variablen verwenden.Beispiele zum Einsatz von Variablen.Beispiel - Digging a hole.Formelvergleich]]
153 {{/panel}}
154
155 {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Further information"}}
156 * [[MAXIMA manual>>url:http://maxima.sourceforge.net/docs/manual/de/maxima.html||shape="rect"]]
157 * [[MAXIMA good practice examples>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]]
158 * [[MAXIMA system information>>url:http://maxima.sourceforge.net/||rel="nofollow" shape="rect" class="external-link"]]
159 {{/panel}}
160 {{/layout-cell}}
161 {{/layout-section}}
162
163 {{layout-section ac:type="single"}}
164 {{layout-cell}}
165 == Example "Digging a hole" ==
166
167 |(((
168 (% class="content-wrapper" %)
169 (((
170 [[image:attach:Editor - Aufgabentext_de.png]]
171 )))
172 )))|(((
173 Create a **[[calculation interaction>>url:https://www.bps-system.de/help/display/ONYXintern/.Berechnungsaufgabe+v8.X||shape="rect"]] **and replace by variables all the values in the task text that should later be initialised with random values. Variables can be added by specifying the variable name in braces. The following variables are used in the example:
174
175 * The text variable {PEOPLE} should be randomly assigned the value "men", "woman" or "children".
176 * The numerical variables {A}/{B} indicate the number of people.
177 * The numerical variable {MIN} stands for the given time.
178
179 The answer is to be calculated from the given values and will also be represented as a variable later:
180
181 * The numerical variable {ANSWER} refers to the time to be calculated.
182 )))
183 |(((
184 (% class="content-wrapper" %)
185 (((
186 [[image:attach:Editor - Variable People bearbeiten_de.png]]
187 )))
188 )))|(((
189 All required variables can be managed in the tab **//Variables//**. In the following, the variable creation process will be explained using the text variable example {PEOPLE}:
190
191 * In the section **//Pre-processed variables//**, create a new variable via the button** //Add new variable//**.
192 * Enter the variable name **PEOPLE**. Please pay attention to the correct spelling of the variable name. Upper- and lower-case letters must be the same as for the placeholder.
193 * Since this is a text variable, select the entry **//Text//** as variable type.
194 * The value is set from a **random selection** of given terms.
195 * Enter the terms "**men**", "**woman**" and "**children**". Separate multiple values by a line break or semicolon.
196 )))
197 |(((
198 (% class="content-wrapper" %)
199 (((
200 [[image:attach:Editor - Variablenübersicht_de.png]]
201 )))
202 )))|(((
203 All other variables will also be created:
204
205 * Variable: {PEOPLE}, type: text, random selection: men; woman; children
206 * Variable: {A}, type: integer, value range: min=2, max=4, step=1
207 * Variable: {MIN}, type: floating-point, calculation (MAXIMA): 120/{A} 
208
209 The variable {B} should be set depending on the variable {A} to simplify the calculation. Therefore, the variable {B} is initially empty and then set to the appropriate value using a condition.
210
211 * Variable: {B}, type: integer, condition: IF A = 2 THEN B = value range: min=4, max=12, step=2 ELSE IF A = 3 THEN B = random selection: 6; 12 ELSE IF A = 4 THEN B = random selection: 8; 12 
212 * Variable: {ANSWER}, type: integer, calculation (MAXIMA): 120/{B}
213 )))
214 |(((
215 (% class="content-wrapper" %)
216 (((
217 [[image:attach:Editor - Aufgabentext_de.png]]
218 )))
219 )))|(((
220 To insert the variable into the task text, you need to type the variable name {PEOPLE}. In the example, the variable is included in a task of the type [[calculation interaction>>url:https://www.bps-system.de/help/display/ONYXintern/.Berechnungsaufgabe+v8.X||shape="rect"]].
221 )))
222 |(% colspan="1" %)(% colspan="1" %)
223 (((
224 (% class="content-wrapper" %)
225 (((
226 [[image:attach:Testrun - Beispielaufgabe mit Zufallswerten_de.png]]
227 )))
228 )))|(% colspan="1" %)(% colspan="1" %)
229 (((
230 One of the defined values will be randomly chosen for each participant and each test attempt. In the example, the value "**women**" was inserted.
231 )))
232 {{/layout-cell}}
233 {{/layout-section}}
234 {{/layout}}