Commit 9b4acbd14f02c8da23a12221e3bb5c7bf7b24cf4
1 parent
e6ba17f4
Exists in
master
and in
1 other branch
- changed the demo test to demonstrate mathjax
Showing
2 changed files
with
14 additions
and
11 deletions
Show diff stats
demo/questions.yaml
| 1 | - | 1 | - |
| 2 | - ref: solar-system-jupiter | 2 | + ref: solar-system-jupyter |
| 3 | type: radio | 3 | type: radio |
| 4 | text: Qual dos seguintes é o maior planeta? | 4 | text: Qual dos seguintes é o maior planeta? |
| 5 | options: | 5 | options: |
| @@ -13,15 +13,16 @@ | @@ -13,15 +13,16 @@ | ||
| 13 | hint: Também é o mais pesado. | 13 | hint: Também é o mais pesado. |
| 14 | # --------------------------------------------------------------------------- | 14 | # --------------------------------------------------------------------------- |
| 15 | - | 15 | - |
| 16 | - ref: solar-system-mars | 16 | + ref: math-expressions |
| 17 | type: checkbox | 17 | type: checkbox |
| 18 | text: Quais das seguintes expressões são verdadeiras? | 18 | text: Quais das seguintes expressões são verdadeiras? |
| 19 | options: | 19 | options: |
| 20 | - $1 > 0$ | 20 | - $1 > 0$ |
| 21 | - $-1 > 1$ | 21 | - $-1 > 1$ |
| 22 | - $\sqrt{3} > \sqrt{2}$ | 22 | - $\sqrt{3} > \sqrt{2}$ |
| 23 | - - $0 = 0$ | ||
| 24 | - correct: [1, -1, 1, 0.5] | 23 | + - $e^{i\pi} + 1 = 0$ |
| 24 | + - $\frac{\partial f(x,y)}{\partial z} = 1$ | ||
| 25 | + correct: [1, -1, 1, -1] | ||
| 25 | # optional | 26 | # optional |
| 26 | discount: True | 27 | discount: True |
| 27 | hint: Uma delas é falsa. | 28 | hint: Uma delas é falsa. |
demo/test.yaml
| @@ -40,23 +40,25 @@ files: | @@ -40,23 +40,25 @@ files: | ||
| 40 | # The following example will generate a test with 3 questions. | 40 | # The following example will generate a test with 3 questions. |
| 41 | questions: | 41 | questions: |
| 42 | # first question | 42 | # first question |
| 43 | - - ref: | ||
| 44 | - # choose 1 from the following 2 questions | ||
| 45 | - - solar-system-mars | ||
| 46 | - - solar-system-jupiter | ||
| 47 | - points: 0.5 | 43 | + - ref: math-expressions |
| 44 | + points: 1 | ||
| 48 | 45 | ||
| 49 | # second question | 46 | # second question |
| 47 | + - ref: solar-system-jupyter | ||
| 48 | + points: 0.5 | ||
| 49 | + | ||
| 50 | + # third question | ||
| 50 | - ref: | 51 | - ref: |
| 52 | + # choose 1 from the following 2 questions | ||
| 51 | - question-v1 | 53 | - question-v1 |
| 52 | - question-v2 | 54 | - question-v2 |
| 53 | # points: 1.0 is the default, if omitted | 55 | # points: 1.0 is the default, if omitted |
| 54 | 56 | ||
| 55 | - # one question | 57 | + # fourth question |
| 56 | - ref: question-colors | 58 | - ref: question-colors |
| 57 | points: 1.5 | 59 | points: 1.5 |
| 58 | 60 | ||
| 59 | - # just use defaults | 61 | + # questions 5,6,7 using default points (=1.0) |
| 60 | - question-whatever | 62 | - question-whatever |
| 61 | - one-question | 63 | - one-question |
| 62 | - another-question | 64 | - another-question |