The answer is correct if it matches every character of the expected answer. This can be a problem with international spelling, dates, or anything where the format of the answer is not clear.
Which US state has Lansing as its capital?
-Lansing is the capital of Michigan, although it is not Michgan's largest city, or even the seat of the county in which it resides.
+ + + """) + it 'converts StringResponse with regular expression to xml', -> + data = MarkdownEditingDescriptor.markdownToXml("""Who lead the civil right movement in the United States of America? + = | \w*\.?\s*Luther King\s*.* + + [Explanation] + Test Explanation. + [Explanation] + """) + expect(data).toEqual("""Who lead the civil right movement in the United States of America?
+Explanation
+ +Test Explanation.
+Who lead the civil right movement in the United States of America?
-Explanation
+ +Test Explanation.
+ +Write a number from 1 to 4.
+Explanation
-It depends on how many choices are marked as correct in the underlying XML.
+It depends on how many choices are marked as correct in the underlying XML.
Note that if all choices are marked as incorrect, there is no correct response.
| Attribute | +Description | +Notes | +
|---|---|---|
| type | +(optional) “[ci] [regex]”. Add “ci” if the student response should be graded case-insensitively. The default is to take case into consideration when grading. Add “regexp” for correct answer to be treated as regular expression. | ++ |
| answer | +The string that is used to compare with student answer. If "regexp" is not presented in value of type attribute, student should enter value equal to exact value of this attribute in order to get credit. If "regexp" is presented in value of type attribute, value of answer is treated as regular expression and exact match of this expression and student answer will be done. If search is successful, student will get credit. | ++ |
| Children | +Description | +Notes | +
|---|---|---|
| textline | +used to accept student input. See description below. | ++ |
| additional_answer | +todo | ++ |
What is the distance in the plane between the points (pi, 0) and (0, e)? You can type math.
sqrt(pi^2+e^2) into the editor.
+ sqrt(pi^2+e^2) into the editor.
Other answers like sqrt((pi-0)^2+(0-e)^2) also work.
Write an expression for the product of R_1, R_2, and the inverse of R_3.
Explanation
For the first part, any two numbers of the form n - and 10-n, where n is any integer, will work. + and 10-n, where n is any integer, will work. One possible answer would be the pair 0 and 10.
For the second part, any pair x and 20-x will work, where x is any real number with a finite decimal representation. Both inputs have to be entered either in standard decimal notation or in scientific exponential notation. One possible answer would be the pair 0.5 and 19.5. Another way to write this would be 5e-1 and 1.95e1.
@@ -915,7 +1000,7 @@ Sample Problem:
.. raw:: latex
-
+
\newpage %
.. _Chemical Equation Response:
@@ -924,12 +1009,12 @@ Chemical Equation Response
==========================
The Chemical Equation Response input type is a special type of Custom Response
-that allows the student to enter chemical equations as answers.
+that allows the student to enter chemical equations as answers.
Sample Problem:
.. image:: ../Images/image296.png
- :width: 600
+ :width: 600
**Problem Code**:
@@ -945,7 +1030,7 @@ Sample Problem:
Some tips:
So, you can enter "H2SO4 -> H^+ + HSO4^-".