diff options
author | Prabhu Ramachandran | 2011-11-25 18:48:13 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-25 18:48:13 +0530 |
commit | fdc531b561565345847812f409ee44af0a784e82 (patch) | |
tree | 447b297d28dccb700dcd244404e6cd748191890d /docs/sample_questions.xml | |
parent | b4023e17d6f97e51ffde740c17d19630b5a9c2d1 (diff) | |
download | online_test-fdc531b561565345847812f409ee44af0a784e82.tar.gz online_test-fdc531b561565345847812f409ee44af0a784e82.tar.bz2 online_test-fdc531b561565345847812f409ee44af0a784e82.zip |
ENH: Adding support for Multiple Choice Questions
Adds simple support for multiple choice questions that are also
auto-checked. Many fixes to the templates and useful feature additions.
This changes the database.
Diffstat (limited to 'docs/sample_questions.xml')
-rw-r--r-- | docs/sample_questions.xml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/sample_questions.xml b/docs/sample_questions.xml index cad205b..53c76f8 100644 --- a/docs/sample_questions.xml +++ b/docs/sample_questions.xml @@ -10,11 +10,13 @@ and returns the factorial of the number. For example fact(3) -> 6 </description> <points>2</points> -<language>python</language> +<type>python</type> <test> assert fact(0) == 1 assert fact(5) == 120 </test> +<options> +</options> </question> <question> @@ -27,12 +29,14 @@ returns the square of the argument For example sqr(3) -> 9. </description> <points>1</points> -<language>python</language> +<type>python</type> <test> import math assert sqr(3) == 9 assert abs(sqr(math.sqrt(2)) - 2.0) < 1e-14 </test> +<options> +</options> </question> |