summaryrefslogtreecommitdiff
path: root/yaksh/documentation/moderator_docs
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-01-16 23:20:33 +0530
committerGitHub2017-01-16 23:20:33 +0530
commitc3205b84ebd1796d98e140952802cdc0baad19a7 (patch)
tree4b63a64417776c95e12f2af75411075e6c0e7bd0 /yaksh/documentation/moderator_docs
parent899b2c4a347a6e7c4391dedce163a7ae0c4e8634 (diff)
parent987efbcba6e9976d1351a35454a62d6b8305009d (diff)
downloadonline_test-c3205b84ebd1796d98e140952802cdc0baad19a7.tar.gz
online_test-c3205b84ebd1796d98e140952802cdc0baad19a7.tar.bz2
online_test-c3205b84ebd1796d98e140952802cdc0baad19a7.zip
Merge pull request #176 from maheshgudi/hook_evaluator
Hook evaluator
Diffstat (limited to 'yaksh/documentation/moderator_docs')
-rw-r--r--yaksh/documentation/moderator_docs/creating_question.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/yaksh/documentation/moderator_docs/creating_question.rst b/yaksh/documentation/moderator_docs/creating_question.rst
index ec273f5..f99bf7f 100644
--- a/yaksh/documentation/moderator_docs/creating_question.rst
+++ b/yaksh/documentation/moderator_docs/creating_question.rst
@@ -234,6 +234,24 @@ How to write Test cases
For MCC based question, check the correct checkbox for multiple correct options.
+ * **Create Hook based Test Case**
+
+ Select Hook from Add Test Case field.
+
+ In Hook based test case type, moderator is provided with a evaluator function
+ called **check_answer** which is provided with a parameter called **user_answer**.
+
+ **user_answer** is the code of the student in string format.
+
+ A moderator can check the string for specific words in the user answer
+ and/or compile and execute the user answer (using standard python libraries) to
+ evaluate and hence return the mark fraction.
+
+
+ .. image:: ../images/hook_testcase.jpg
+ :width: 80%
+
+
Features in Question
--------------------