Last modified by Carina Enke on 14.01.2024

Show last authors
1 {{layout}}
2 {{layout-section ac:type="two_right_sidebar"}}
3 {{layout-cell}}
4 Post-test variables allow, for example, **learner responses from individual questions to be used in subsequent questions**. Access to learner responses of previous questions supports the consideration of follow-up mistakes and facilitates splitting complex questions into sub-steps.
5
6 In the following example "ice cream sale", the learner response given in question 1 will be used and further processed in the subsequent questions 2 and 3.
7
8
9 [[image:attach:Testversuch - Eisverkäufer.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
10 {{/layout-cell}}
11
12 {{layout-cell}}
13 {{panel title="Content"}}
14 {{toc/}}
15 {{/panel}}
16
17 {{panel title="Using question variables"}}
18 * [[Definition of a variable>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.WebHome||shape="rect"]]
19 * [[Use of variables>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.WebHome||shape="rect"]]
20 * [[Definition of a condition>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.WebHome||shape="rect"]]
21 * [[Expert mode (IMS QTI)>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.WebHome||shape="rect"]]
22 * [[View variable assignment>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.WebHome||shape="rect"]]
23 {{/panel}}
24 {{/layout-cell}}
25 {{/layout-section}}
26
27 {{layout-section ac:type="single"}}
28 {{layout-cell}}
29
30 {{/layout-cell}}
31 {{/layout-section}}
32
33 {{layout-section ac:type="single"}}
34 {{layout-cell}}
35 == Example test ice cream sale ==
36
37
38 |(((
39 (% class="content-wrapper" %)
40 (((
41 [[image:attach:Test - Verknüpfung von Post Testvariablen und Aufgabenvariablen_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
42 )))
43 )))|(((
44 **Test variables:**
45
46 In the example, “post-processed” (post) variables will be created **at test level** and set to the value of the learner response for each question. For example, the test variable {LR1} will be set to the value of the learner response, i. e. the entry of the participant, for the first question.
47
48 (% style="letter-spacing:0.0px" %)By assigning learner responses to variables of subsequent questions, you can use these learner responses continuously over multiple questions. More specifically, the value of the test variable {LR1}, i. e. the learner response to the first question, will be passed to the variable Item_LR2 of the second question.
49 )))
50 |(((
51 (% class="content-wrapper" %)
52 (((
53 [[image:attach:Aufgabe - Nutzung von Post Testvariablen in Aufgabenvariablen_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
54 )))
55
56
57 **Display of the individual hint during the test:**
58
59
60 [[image:attach:Testrun - individueller Hinweis_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
61 )))|(((
62 **Question variables and calculation of follow-up mistakes: **
63
64 The value of the question variable Item_LR1 will be initialised by the test system. Upon the submission of the first test question, the learner response will be stored in the post-test variable LR_1. When the second question opens, this value will be passed on to question 2 due to the assignment to the question variable Item_LR1.
65
66 (% style="letter-spacing:0.0px" %)Whether or not a learner response has been entered for question 1 will be checked using a condition:
67
68 * If a response has been entered, the correct solution (CR_2) will be calculated on the basis of the learner response.
69 * If no response has been entered, the correct answer (750) from the first question will be used for further processing.
70
71 **Creation of an individual hint:**
72
73 The auxiliary variable “Hint” allows you to generate an individual hint for the participant. It will again be checked with a condition whether or not the participant has entered a response for question 1.
74
75 * If the participant has entered a response, it will again be displayed in the second question.
76 * If the participant has not entered a response (NULL) or typed 0 as an answer, they will be shown a general hint and the correct solution.
77 )))
78
79 == Creating a simple example step by step ==
80
81 Follow these steps to create a simple example for displaying the **learner response in the subsequent question**:
82
83 |(% class="numberingColumn" %)(% class="numberingColumn" %)
84 (((
85 1
86 )))|(% style="width:607px" %)(((
87 Create a test. In the options tab, enable **linear processing **for the test. Linear processing ensures that participants process the questions one after the other. Only if this setting has been configured, it will be possible to pass on values from one question to the next.
88 )))|(% style="width:362px" %)(((
89 (% class="content-wrapper" %)
90 (((
91 [[image:attach:Test - Lineare Navigation_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
92 )))
93 )))
94 |(% class="numberingColumn" %)(% class="numberingColumn" %)
95 (((
96 2
97 )))|(% style="width:607px" %)(((
98 Create two text entry interactions titled A1 and A2.
99 )))|(% style="width:362px" %)(((
100 (% class="content-wrapper" %)
101 (((
102 [[image:attach:Test - Lückentextaufgaben_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" height="251" width="230"]]
103 )))
104 )))
105 |(% class="numberingColumn" %)(% class="numberingColumn" %)
106 (((
107 3
108 )))|(% style="width:607px" %)(((
109 Specify the gap type for the first question, for example "Numeric (floating point)".
110 )))|(% style="width:362px" %)(((
111 (% class="content-wrapper" %)
112 (((
113 [[image:attach:Aufgabe - Art der Lücke_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
114 )))
115 )))
116 |(% class="numberingColumn" %)(% class="numberingColumn" %)
117 (((
118 4
119 )))|(% style="width:607px" %)(((
120 Then create a pre-question variable (Item_LR1) with an empty value for the second question. This question variable will be necessary to record the learner response from A1. The assignment will be done in step 6.
121
122 The variable type must match the selected gap type for question A1:
123
124 * For text entry interactions and formula comparisons, the participant enters text, which is why “Text” must be selected as the variable type.
125 * For the question types numerical input and calculation interaction, the participant enters a number as a learner response, which is why “Floating point” must be selected as the variable type.
126 )))|(% style="width:362px" %)(((
127 (% class="content-wrapper" %)
128 (((
129 [[image:attach:Aufgabe - Variable anlegen_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
130 )))
131 )))
132 |(% class="numberingColumn" %)(% class="numberingColumn" %)
133 (((
134 5
135 )))|(% style="width:607px" %)(((
136 To display the pre-question variable (Item_LR1) and thus the participant response from the first question (A1) later in the question text of question A2, you need to insert it in the question text.
137 )))|(% style="width:362px" %)(((
138 (% class="content-wrapper" %)
139 (((
140 [[image:attach:Aufgabe - Anzeige der Variable im Aufgabentext_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
141 )))
142 )))
143 |(% class="numberingColumn" %)(% class="numberingColumn" %)
144 (((
145 6
146 )))|(% style="width:607px" %)(((
147 Now create the post-test variable (LR1). Do not forget to pay attention to choosing the correct variable type here as well. In the example, the type "Floating point" is used.
148
149 Set the value of the variable to the variable value of the learner solution (LEARNERRESPONSE_GAP_1) for question A1.
150
151 Assign this post-test variable to the question variable (Item_LR1).
152 )))|(% style="width:362px" %)(((
153 (% class="content-wrapper" %)
154 (((
155 [[image:attach:Test - Post Testvariablen anlegen_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
156 )))
157 )))
158 |(% class="numberingColumn" colspan="1" %)(% class="numberingColumn" colspan="1" %)
159 (((
160 7
161 )))|(% colspan="1" style="width:607px" %)(% colspan="1" %)
162 (((
163 (% class="content-wrapper" %)
164 (((
165 Save the test and start the preview. Fill in the blank of the first question. Then switch to the second question. The value entered in the first question will be displayed in the question text.
166
167 {{info}}
168 This example does not take into account the possibility of not entering an answer for the first question. How to consider this case by creating conditions is shown in the ice cream sale example above.
169 {{/info}}
170 )))
171 )))|(% colspan="1" style="width:362px" %)(% colspan="1" %)
172 (((
173 (% class="content-wrapper" %)
174 (((
175 [[image:attach:Beispiel Testversuch - Anzeige der Lösung in A2_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
176 )))
177 )))
178 {{/layout-cell}}
179 {{/layout-section}}
180 {{/layout}}