create_problem.rst 17.8 KB
Newer Older
Toddi Norum committed
1 2 3 4 5 6 7

****************
Create a Problem 
****************

Overview
********
8 9


10 11
The problem component allows you to add interactive, automatically graded exercises to your course content. You can create many different types of problems
in Studio.
12

13
By default, all problems are ungraded practice problems. To change the problems to graded problems, change the assignment type of the subsection. 
14

15
To create a problem, determine:
Toddi Norum committed
16

17
• The type of problem that you want.
18

19
• The weight to assign to the problem.
20

21
• Whether you want to randomize the problem. 
22

23
• How to close the problem-that is, how to set the number of attempts a student has, [as well as set the due date].
24

25
• How you want to provide feedback to students; show answer on/off.
26

27
This course contains several places with more information about creating exercises and integrating them into your 	course.
28

29 30
• `Writing Exercises <https://edge.edx.org/courses/edX/edX101/How_to_Create_an_edX_Course/courseware/a45de3baa8a9468cbfb1a301fdcd7e86/d15cfeaff0af4dd7be4765cd0988d172/1>`_ has more in-depth discussion about problem types, and some general pedagogical considerations for adapting to the online format and a `Gallery of Response Types <https://edge.edx.org/accounts/login?next=/courses/edX/edX101/How_to_Create_an_edX_Course/courseware/a45de3baa8a9468cbfb1a301fdcd7e86/3ba055e760d04f389150a75edfecb844/1>`_

Julian Arni committed
31
•  `Appendix E <appendices/e.html>`  contains XML documentaion for the different problem response types.
32

33
•  The `Discussion Forum <https://edge.edx.org/courses/edX/edX101/How_to_Create_an_edX_Course/discussion/forum">`_  for this class is a good place to ask questions about exercise types, report any errors or oddities that you may encounter, and get technical support.
34
   
35
•  Creating problems for the online format opens a new playing field in the educational process. A big part of the community aspect of edX is to initiate and grow a `Creative Problems <https://edge.edx.org/courses/edX/edX101/How_to_Create_an_edX_Course/wiki/edx101/creative-problems/>`_ . Please look here to be inspired by new approaches when first making your class. Please also come back to post interesting approaches that you came up with while running your class, and to share with the community what worked well and what did not.
36

Toddi Norum committed
37
**Simple Editor and Advanced Editor**
38 39


40 41 42
Studio offers two interfaces for editing problem components.

• The **Simple Editor** allows you to edit problems visually, without having to work with XML.
43

Julian Arni committed
44
• The **Advanced Editor** converts the problem to edX's XML standard and allows you to edit that XML directly. For more information about the XML for different problem types, see `Appendix E <appendices/e.html>` .
45 46

 
47
Some of the simpler problem templates, including multiple choice, open in the Simple Editor and allow you to switch to the Advanced Editor. The more complicated problem types, such as Circuit Response, open in the Advanced Editor.
48

49 50 51
.. note::

    You can switch at any time from the Simple Editor to the Advanced Editor by clicking "Advanced Editor" in the Simple Editor interface. However, there is no way to go back from the Advanced Editor to the Simple Editor without making a new component.
52
   
53
To open the Advanced Editor, click **Advanced Editor** in the top right corner of the Simple Editor.
54

55
.. image:: Images/image275.png
56
    :width: 600px
57 58
   

59
The following is a multiple choice problem in the Advanced Editor.
60

61
.. image:: Images/image276.png
62
    :width: 600px
Toddi Norum committed
63

Toddi Norum committed
64 65
.. raw:: latex
  
66
  \newpage %
Toddi Norum committed
67

Toddi Norum committed
68 69

Problem Type
70 71
************

72
Links to description of all the different problem types-brief. Then include links to all the XML, etc.
73

74 75 76
You may want to create a problem that has more than one response type. For example, you may want to create a multiple choice question, and then ask the
student to explain his or her response. You may also want a student to be able to check the answers to many problems at one time. To accomplish these
tasks, you can include multiple problems inside a single Problem component. (LINK)
77

Toddi Norum committed
78 79
.. raw:: latex
  
80
  \newpage %
Toddi Norum committed
81

Toddi Norum committed
82
Randomizing
83 84
***********

85 86
The **rerandomize** setting determines whether any random variable inputs for a problem are randomized each time a student loads the problem.
(This is only applicable to problems with randomly generated numeric variables.)
87

Toddi Norum committed
88 89
.. raw:: latex
  
90
  \newpage %
Toddi Norum committed
91

Toddi Norum committed
92
Scoring and Weight
93 94
******************

95 96 97 98 99
Problems store a **point score** for submitted responses. The score that a student earns is the number of correct responses the student
submits divided by the maximum score for the problem. The default maximum score, or weight, is the integer number of response type inputs the problem has.
Thus, the weight attribute for a problem with one response type input is set to 1 (one point). You can change the maximum score for an individual problem
by manually changing the problem **weight** attribute to another number. When you do this, the number of points that you specify appears next
to the problem title ( to one decimal precision).
100

101
**WEIGHT: 0 POINTS**
102

103 104
Scores are stored for all problems, but they only contribute to a student's grade in the course if they are part of a subsection marked as graded. For more
information, see the material on attempts and closing problems in 7B: Feedback and Grading.
105

Toddi Norum committed
106 107
.. raw:: latex
  
108
  \newpage %
Toddi Norum committed
109

110 111
**Computing Point Scores**

112 113
The point score of a response for a problem reflects the correctness of the response and is recorded as the number of points earned out of the maximum
possible score for the problem (also known as the problem weight). The formula used for computing the recorded point score is the following:
114

115
•  **point score of response = problem weight * (# inputs correct / # total inputs)**
116

117
•  **point score of response** is the point score "earned" by this response for the problem.
118
   
119
•  **problem weight** is the maximum possible point score that can be earned for the problem. By default, this is the integer number of response types in that problem. This can be changed to another value by setting the weight attribute of the problem, as described in Setting Problem Attributes.
120
  
121
• ** # inputs correct** is the number of values for this response that were evaluated as correct by the response type fields.
122
   
123
• **# total inputs** is the total number of response type fields in the problem.
Toddi Norum committed
124 125 126

.. raw:: latex
  
127
  \newpage %
128 129 130
   
**Examples**

131
The following are some examples of setting problem weight and computing problem scores.
132 133


134
**Example 1**
135

136
A problem with two response type inputs and a blank weight attribute has a maximum score of 2.0 points.
137

138 139
A student response to this problem that consists of one correct input value and one incorrect input value would be marked as having a score of 1.0 points
out of 2.0 points possible.
140 141


142
**Example 2**
143

144
A problem with three response type inputs and a weight attribute of 12 has a maximum score of 12.0 points.
145

146
A student response to this problem that consists of one correct input value and two incorrect input values would be marked as having a score of 4.0 points out of 12.0 points possible.
147 148


149
**Example 3**
150

151
A problem with four response type inputs and a weight attribute of 2 has a maximum score of 2.0 points.
152

153
A student response to this problem that consists of two correct input values and two incorrect input values would be marked as having a score of 0.5 of a point out of 2.0 points total.
Toddi Norum committed
154

155
**PROBLEM: 20.0 POINTS**
156

157
• The weight attribute for this problem has been changed from the default.
158

159 160 161 162 163 164 165 166 167
• How many points is the entire problem worth?

• What number is the weight attribute of this problem set to?

• How many response inputs does this problem have?

• What is the default maximum score for this problem?

• If a response to this problem got one value right and the rest wrong, what score would it be assigned?
168

Toddi Norum committed
169 170
.. raw:: latex
  
171
  \newpage %
Toddi Norum committed
172

Toddi Norum committed
173
Close
174 175
*****

176 177
To stop accepting responses and recording points, problems can be **closed.** Closed problems do not display a **Check** button. Students
can still see questions, solutions, and revealed explanations in a closed problem, but they can no longer check their work, submit responses, or change their stored score.
178

179
There are several ways that you can close problems:
180

181
• Set a due date for the problems in a subsection. Note that you cannot set due dates for individual problems -- only for containing subsections (assignments). By default, due dates are not set. To set a due date, see LINK.
182

183
• Specify a grace period for your course. Note that the grace period applies to the entire course. To set a grace period, see LINK.
184

185
• Set the number of attempts for the individual problem component. The attempts setting determines the number of times a student is allowed to check their answer by clicking Check before the problem closes. If this field is left blank, a student has unlimited attempts. If you specify a number for the attempts setting, the number of total allowed and remaining attempts appears next to the Check button for the problem. Problems with a limited number of attempts also always display a Save button that allows response values to be saved without being submitted. When there is only one submission left, the student will receive a warning, and the Check button will be replaced with a Final Check button. When no attempts are left, both the Save and Check button will disappear.For more information, see Problem Attributes.
186

187
• Manually increase the number of attempts left for a given problem for a particular student from the Instructor tab in the live view of your course, when accessed in the Instructor view on Edge. This is recommended only for unusual situations, such as if you have to fix live problems during an exam.
188

Toddi Norum committed
189 190
.. raw:: latex
  
191
  \newpage %
Toddi Norum committed
192

Toddi Norum committed
193
Feedback
194 195
********

196
Studio includes several tools to provide feedback to students: the **Check** button, the **Show Answer** button, and the**Attempts** setting. When you use the **Show Answer** button, you can also provide a detailed explanation of the answer.
197

198
TBD-SCREENSHOT OF PROBLEM WITH THESE ELEMENTS CIRCLED
199

200
**Check Button**
201

202
The student clicks the **Check** button to submit a response. The problem module then performs the following steps.
203

204
• Accepts and stores the responses entered into each input.
205

206
• Checks the response values against the correct answers or solutions using an automatic grader.
207

208
• Visually marks the correct responses with a green check mark and the incorrect responses with a red x.
209

210
• Stores the point score earned by this response for this problem for this student.
211

212
If a student wants to save but not submit a response, the student can click **Save**.
213

214 215
In the following problem, enter a response, and then click **Check**. The problem tells you if your response is correct or incorrect.
Additionally, although you don't see it, a point score is also automatically stored for the response you submit.
216

217
.. image:: Images/image277.png
218
    :width: 600px
Toddi Norum committed
219

220
**Show Answer button**
221

222 223 224
When a student clicks **Show Answer**, the problem shows the correct answers next to the corresponding response inputs and reveals any
additional explanations that you have provided. **Show Answer** is controlled by the **showanswer** attribute in the problem
editor. It can be set to be never visible, always visible, or visible only when the problem has closed. [Reference: Setting Problem Attributes.]
225

226
In the following problem, the **Show Answer ** button appears after the student has made at least one attempt to answer. Enter a response that you know is wrong, and then click **Check**.
227

228
.. image:: Images/image278.png
229
    :width: 600px
230

231
Now, click **Show Answer** to view the correct answer and its explanation.
232

233
.. image:: Images/image279.png
234
    :width: 600px
Toddi Norum committed
235 236 237 238


.. raw:: latex
  
239
  \newpage %
Toddi Norum committed
240 241 242 243 244



Create a Problem
****************
245

246
.. note::
Julian Arni committed
247 248
    
    You can also include non-graded exercises throughout your course.
249 250


251 252 253 254
To add interactive, automatically graded exercises to your course content, use the Problem component. This component allows you to include an explanation
that the student can see when the student clicks **Show Answer**.

 Studio offers several templates that you can use. Alternatively, you can create your own problem type in XML.
Julian Arni committed
255
 For detailed information about different problem types, see `Appendix E <appendices/e.html>`.  
256 257
   

258
1. Under **Add New Component**, click **Problem**.
259

260
.. image:: Images/image096.png
261
    :width: 600px
262 263


264
The **Select Problem Component Type** screen appears. By default, the **Common Problem Types** tab is selected.
265

266
.. image:: Images/image097.png
267
    :width: 600px
268 269


270
To see a list of more complex problem types, click the **Advanced** tab.
271 272


273
.. image:: Images/image099.png
274
    :width: 600px
275 276


277
2. Click the problem type that you want.
278

279 280 281 282 283
.. note::
    
    To create your own problem in XML, click "Empty" to open a blank XML editor.

A new problem component with sample template text appears.
284

285
For example, if you click **Multiple Choice**, the following problem component appears.
286

287
.. image:: Images/image101.png
288
    :width: 600px
Toddi Norum committed
289

290 291


292 293
3. Click **Edit**. This opens the Simple Editor for the problem component. The following example shows this view for a multiple choice
problem.
294

295
.. image:: Images/image103.jpg
296
    :width: 600px
297 298


299
4. Set the problem attributes.
300

301
In the **display_name** box, type the text that you want the student to see when the student hovers over the icon in the bar at the top of the page. This text also appears as a header for the problem.
302
   
303 304 305 306 307
a. In the **weight** box, set a weight for the problem. If you want the problem to be a practice problem, set this to zero (0).

b. In the **rerandomize** box,

c.  In the **attempts** box, specify the number of attempts that you want to allow the student.
308
  
309
d.  In the **showanswer** box, enter one of the following settings.
Toddi Norum committed
310

Toddi Norum committed
311 312
.. raw:: latex
  
313
  \newpage %
Toddi Norum committed
314

315
**Reference**
316

317
• **never** = The Show Answer button is never visible.
318

319
• **closed** = The Show Answer button is not visible if either the due date has passed, or the student has no attempts left.
320

321
• **attempted** = The Show Answer button appears after the student has checked an answer once, regardless of correctness.
322

323
• **always** = The Show Answer button always appears.
324 325


326
5. Modify the problem text, and then click **Save** to save and check your work. Make sure to publish the draft you are working on to view the problem live.
327

Toddi Norum committed
328 329
.. raw:: latex
  
330
  \newpage %
Toddi Norum committed
331

Toddi Norum committed
332
Modify a Released Problem
333 334 335 336
*************************

   **WARNING: Be careful when you modify problems after they have been released!**

337
Currently, problems cache the following information per student:
338

339
• The student's last **submitted** response. 
340

341
• The score the student earned for that last response.
342

343
• The maximum point score for that problem.
Toddi Norum committed
344

345
This information is updated when a student submits a response to a problem. If the student refreshes the **Progress** page, solutions are not re-checked. If a student refreshes the page of a problem, the latest version of the problem statement is loaded, but their previous response is NOT reevaluated. Rather, the previous response is loaded on top of the current problem statement. That is **existing** student responses for a problem are not reevaluated if the problem statement or attributes are changed, until a student goes back and resubmits the problem. Furthermore, as of the time of writing, if the problem weight attribute is changed, stored scores are re-weighted (without rechecking the response) when the student reloads the **Progress** page.
346

347
For example, you may release a problem that has two inputs. After some students have submitted answers, if you change the solution to one of the inputs, the existing student scores are not updated.
348

349
Example: If you change the number of inputs to three, students who submitted answers before the change will have a score of 0, 1, or 2 out of 2.0. Students who submitted answers after the change will have scores of 0, 1, 2, or 3 out of 3.0 for the same problem.
350

351
However, if you go in and change the weight of the problem, the existing scores update when you refresh the **Progress** page.
352

353
Note that the behavior of re-grading in case of error is an edX Edge case. It is dependent on the implementation of grading, and may change. The goal in the future is to include re-grading that will allow some basic updates to live problems, whether or not students have submitted a response.
354

355
.. raw:: latex
Toddi Norum committed
356
  
357
  \newpage %
Toddi Norum committed
358 359


360 361
Workarounds
===========
362

363
If you have to modify a released problem in a way that affects grading, you have two options. Note that both options require you to ask your students to go back and resubmit a problem.
364

Toddi Norum committed
365

366
1.  Increase the number of attempts on the problem in the same Problem component. Then ask all the students in your class to redo the problem.
367
   
368 369 370
2.  Delete the entire Problem component in Studio and create a new Problem component with the content and settings that you want. Then ask all the students in your course to go back to this assignment and complete problem.

Check your **Progress** view or the **Instructor** tab on Edge as described in the Viewing Scores unit to see if point scores are being stored as you expect. If there are issues with stored scores that you do not understand or cannot fix, contact support on the Studio help page.
371

372
For a discussion of some trade-offs and some suggestions for cleaner solutions in the future, see the following `discussion thread <http://help.edge.edx.org/discussions/questions/73-what-if-you-discover-that-a-live-problem-is-wrong">`_ on the Studio help desk.
373

374
You can include multiple problems of different types inside a single Problem component, even if you select a particular template when you create a problem. A template is simply an XML editor with template text already filled in. You can add to or replace the template text.