Wiki-Quellcode von Beispiel - Digging a hole

Version 97.1 von Carina Enke am 19.05.2020

Zeige letzte Bearbeiter
1 {{sv-translation language="de"}}
2 {{layout}}
3 {{layout-section ac:type="single"}}
4 {{layout-cell}}
5 \\
6
7 {{details}}
8 (% class="wrapped" %)
9 |=(((
10 Verantwortlicher
11 )))|(((
12 \\
13 )))
14 |=(% colspan="1" %)(% colspan="1" %)
15 (((
16 Status
17 )))|(% class="highlight-yellow" colspan="1" data-highlight-colour="yellow" %)(% class="highlight-yellow" colspan="1" data-highlight-colour="yellow" %)
18 (((
19 (% class="content-wrapper" %)
20 (((
21 {{sv-metadata type="workflow-status"/}}
22
23 {{status colour="Green" title="Fertig"/}}
24 )))
25 )))
26 |=(% colspan="1" %)(% colspan="1" %)
27 (((
28 Varianten
29 )))|(% colspan="1" %)(% colspan="1" %)
30 (((
31 (% class="content-wrapper" %)
32 (((
33 {{sv-metadata type="variants"/}}
34 )))
35 )))
36 |=(% colspan="1" %)(% colspan="1" %)
37 (((
38 Attribute
39 )))|(% colspan="1" %)(% colspan="1" %)
40 (((
41 (% class="content-wrapper" %)
42 (((
43 {{sv-metadata type="attributes"/}}
44 )))
45 )))
46 |=(% colspan="1" %)(% colspan="1" %)
47 (((
48 Pagekey
49 )))|(% colspan="1" %)(% colspan="1" %)
50 (((
51 (% class="content-wrapper" %)
52 (((
53 {{sv-metadata type="pagekey"/}}
54 )))
55 )))
56 |=(% colspan="1" %)(% colspan="1" %)
57 (((
58 Übersetzung
59 )))|(% colspan="1" %)(% colspan="1" %)
60 (((
61 (% class="content-wrapper" %)
62 (((
63 Example "Digging a Hole" 
64
65 {{status colour="Green" title="fertig"/}}
66 )))
67 )))
68 |=(% colspan="1" %)(% colspan="1" %)
69 (((
70 TODOs
71 )))|(% colspan="1" %)(% colspan="1" %)
72 (((
73 (% class="content-wrapper" %)
74 (((
75 (% class="task-list" %)
76 (((
77 {{task reference="/Tasks/Task_2" status="Done"}}
78 carina {{mention reference="XWiki.0a49950f5c0f19a8015c101b60e10001" style="FULL_NAME" anchor="XWiki-0a49950f5c0f19a8015c101b60e10001-qgFoT"/}} : Bitte update der Seite, Inhalte neu strukturiert, {{date value="2019-04-24" format="yyyy-MM-dd"/}}
79
80 {{/task}}
81
82 {{task reference="/Tasks/Task_4" status="Done"}}
83 Vanessa: {{mention reference="XWiki.carina" style="FULL_NAME" anchor="XWiki-carina-WBaDy"/}}: Ein paar deutsche Bildüberschriften fehlen noch
84
85 {{/task}}
86 )))
87 )))
88 )))
89 {{/details}}
90 {{/layout-cell}}
91 {{/layout-section}}
92
93 {{layout-section ac:type="two_right_sidebar"}}
94 {{layout-cell}}
95 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.
96
97 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"]].
98 \\
99
100 [[image:attach:Testrun - Beispiel Zufallswerte_de.png]]
101
102 \\
103 {{/layout-cell}}
104
105 {{layout-cell}}
106 {{scroll-ignore}}
107 {{panel}}
108
109
110 {{toc/}}
111 {{/panel}}
112
113 {{panel borderColor="#ddd" borderStyle="solid" title="Verwandte Themen"}}
114 * [[doc:Variablen verwenden]]
115 * [[doc:Berechnungsaufgabe]]
116 * [[doc:Formelvergleich]]
117 {{/panel}}
118
119 {{panel borderColor="#ddd" borderStyle="solid" title="Weiterführende Informationen"}}
120 * [[MAXIMA Manual>>url:http://maxima.sourceforge.net/docs/manual/de/maxima.html||shape="rect"]]
121 * [[MAXIMA Good-Practice-Beispiele>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]]
122 * [[MAXIMA Systeminformationen>>url:http://maxima.sourceforge.net/||rel="nofollow" shape="rect" class="external-link"]]
123 {{/panel}}
124 {{/scroll-ignore}}
125 {{/layout-cell}}
126 {{/layout-section}}
127
128 {{layout-section ac:type="single"}}
129 {{layout-cell}}
130 == Beispiel "Digging a hole" ==
131
132 (% class="wrapped" %)
133 |(% colspan="1" %)(% colspan="1" %)
134 (((
135 (% class="content-wrapper" %)
136 (((
137 [[image:attach:Editor - Aufgabentext_de.png]]
138 )))
139 )))|(% colspan="1" %)(% colspan="1" %)
140 (((
141 Legen Sie eine **Berechnungsaufgabe[[ >>doc: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:
142
143 * Die Text-Variable {PEOPLE} soll zufällig mit dem Wert "men", "woman" oder "children" belegt werden.
144 * Die numerische Variablen {A}/{B} stehen für die Anzahl an Personen.
145 * Die numerische Variable {MIN} steht für die gegebene Zeit.
146
147 Die Antwort berechnet sich aus den gegebenen Werten. Auch hierfür wird später eine Variable angelegt:
148
149 * Die numerische Variable {ANSWER} steht für die zu berechnende Zeit.
150 )))
151 |(((
152 (% class="content-wrapper" %)
153 (((
154 [[image:attach:Editor - Variable People bearbeiten_de.png]]
155 )))
156 )))|(((
157 Alle benötigten Variablen werden im Tab //**Variablen**// angelegt. Folgend wird dies am Beispiel der Text-Variable {PEOPLE} erläutert:
158
159 * Legen Sie im Abschnitt //**Vor Anzeige verarbeitete Variablen**// eine neue Variable über den Button //**Neue Variable hinzufügen**// an.
160 * Vergeben Sie den Variablen-Namen** PEOPLE**. Bitte achten Sie auf die korrekte Schreibweise. Die Groß- und Kleinschreibung muss gleich zum Platzhalter sein.
161 * Da es sich um eine Textvariable handelt, wählen Sie als Typ **Text**.
162 * Die Wertsetzung erfolgt durch eine **Zufällige Auswahl** von vorgegebenen Begriffen.
163 * Geben Sie die Begriffe "**men**", "**woman**" und "**children**" an. Die Trennung der Werte erfolgt durch Zeilenumbruch oder Semikolon.
164 )))
165 |(% colspan="1" %)(% colspan="1" %)
166 (((
167 (% class="content-wrapper" %)
168 (((
169 [[image:attach:Editor - Variablenübersicht_de.png]]
170 )))
171 )))|(% colspan="1" %)(% colspan="1" %)
172 (((
173 Alle anderen Variablen werden ebenfalls angelegt:
174
175 * (((
176 Variable: {PEOPLE}, Typ: Text, Zufällige Auswahl: men; woman; children  
177 )))
178 * (((
179 Variable: {A}, Typ: Ganze Zahl, Wertebereich: min=2, max=4, step=1  
180 )))
181 * (((
182 Variable: {MIN}, Typ: Gleitkommazahl, Berechnung (MAXIMA): 120/{A}  
183 )))
184
185 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.
186
187 * (((
188 Variable: {B}, Typ: Ganze Zahl, Bedingung: 
189 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  
190 )))
191
192 {ANSWER}, Ganze Zahl, Berechnung (MAXIMA): 120/{B}
193 )))
194 |(((
195 (% class="content-wrapper" %)
196 (((
197 [[image:attach:Editor - Aufgabentext mit Variable_de.png]]
198 )))
199 )))|(((
200 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:Berechnungsaufgabe]]eingefügt.
201 )))
202 |(((
203 (% class="content-wrapper" %)
204 (((
205 [[image:attach:Testrun - Beispielaufgabe mit Zufallswerten_de.png]]
206 )))
207 )))|(((
208 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.
209 )))
210 {{/layout-cell}}
211 {{/layout-section}}
212 {{/layout}}
213 {{/sv-translation}}
214
215 {{sv-translation language="en"}}
216 {{layout}}
217 {{layout-section ac:type="two_right_sidebar"}}
218 {{layout-cell}}
219 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.
220
221 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"]].
222
223 \\
224
225 [[image:attach:Testrun - Beispiel Zufallswerte_de.png]]
226 \\
227 {{/layout-cell}}
228
229 {{layout-cell}}
230 {{scroll-ignore}}
231 {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Content"}}
232
233
234 {{toc/}}
235 {{/panel}}
236
237 {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Related topics"}}
238 * [[Variables>>url:https://www.bps-system.de/help/display/ONYXintern/.Variablen+verwenden+v8.X||shape="rect"]]
239 * [[Calculation interaction>>doc:Berechnungsaufgabe]]
240 * [[Formula comparison>>doc:Formelvergleich]]
241 {{/panel}}
242
243 {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Further information"}}
244 * [[MAXIMA manual>>url:http://maxima.sourceforge.net/docs/manual/de/maxima.html||shape="rect"]]
245 * [[MAXIMA good practice examples>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]]
246 * [[MAXIMA system information>>url:http://maxima.sourceforge.net/||rel="nofollow" shape="rect" class="external-link"]]
247 {{/panel}}
248 {{/scroll-ignore}}
249 {{/layout-cell}}
250 {{/layout-section}}
251
252 {{layout-section ac:type="single"}}
253 {{layout-cell}}
254 == Example "Digging a hole" ==
255
256 |(((
257 (% class="content-wrapper" %)
258 (((
259 [[image:attach:Editor - Aufgabentext_de.png]]
260 )))
261 )))|(((
262 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:
263
264 * The text variable {PEOPLE} should be randomly assigned the value "men", "woman" or "children".
265 * The numerical variables {A}/{B} indicate the number of people.
266 * The numerical variable {MIN} stands for the given time.
267
268 The answer is to be calculated from the given values and will also be represented as a variable later:
269
270 * The numerical variable {ANSWER} refers to the time to be calculated.
271 )))
272 |(((
273 (% class="content-wrapper" %)
274 (((
275 [[image:attach:Editor - Variable People bearbeiten_de.png]]
276 )))
277 )))|(((
278 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}:
279
280 * In the section **//Pre-processed variables//**, create a new variable via the button** //Add new variable//**.
281 * 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.
282 * Since this is a text variable, select the entry **//Text//** as variable type.
283 * The value is set from a **random selection** of given terms.
284 * Enter the terms "**men**", "**woman**" and "**children**". Separate multiple values by a line break or semicolon.
285 )))
286 |(((
287 (% class="content-wrapper" %)
288 (((
289 [[image:attach:Editor - Variablenübersicht_de.png]]
290 )))
291 )))|(((
292 All other variables will also be created:
293
294 * Variable: {PEOPLE}, type: text, random selection: men; woman; children
295 * Variable: {A}, type: integer, value range: min=2, max=4, step=1
296 * Variable: {MIN}, type: floating-point, calculation (MAXIMA): 120/{A} 
297
298 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.
299
300 * 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 
301 * Variable: {ANSWER}, type: integer, calculation (MAXIMA): 120/{B}
302 )))
303 |(((
304 (% class="content-wrapper" %)
305 (((
306 [[image:attach:Editor - Aufgabentext_de.png]]
307 )))
308 )))|(((
309 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"]].
310 )))
311 |(% colspan="1" %)(% colspan="1" %)
312 (((
313 (% class="content-wrapper" %)
314 (((
315 [[image:attach:Testrun - Beispielaufgabe mit Zufallswerten_de.png]]
316 )))
317 )))|(% colspan="1" %)(% colspan="1" %)
318 (((
319 One of the defined values will be randomly chosen for each participant and each test attempt. In the example, the value "**women**" was inserted.
320 )))
321 {{/layout-cell}}
322 {{/layout-section}}
323 {{/layout}}
324 {{/sv-translation}}