Formulas: Hon Wai Lau's examples: Difference between revisions
From MoodleDocs
Line 3: | Line 3: | ||
=Hon Wai Lau's examples= | =Hon Wai Lau's examples= | ||
<div style="border:1px solid #bce8f1;border-radius:4px;padding: 0px 15px 0px; margin:30px 0 25px;"> | |||
====<div style="margin:-20px 0 10px;>Example 01 - Minimal question</div>==== | |||
For a minimal question, you must define a sub-question with: | |||
* mark | |||
* answer | |||
* grading criteria | |||
* question text (optional) | |||
<pre style="font-size:113%;width: 97%;"> | |||
General | |||
Question name! Factorial - example 1 | |||
Variables | |||
Random variables n = {2:8}; | |||
m = {2:8}; | |||
Global variables x = fact(n)*fact(m); | |||
Main question | |||
Question text! Factorial - example 1 | |||
Part 1 | |||
Part's mark* 1 | |||
Answer type Number | |||
Answer* x | |||
Grading criteria* Absolute error == 0 | |||
Part's text Calculate: | |||
{n}! x {m}! = {_0} (enter value using integer format) | |||
Combined feedback | |||
For any correct response | |||
The correct answer is: {x} | |||
For any incorrect response | |||
The correct answer is: {x} | |||
</pre> | |||
The Formulas question should look like this: | |||
[[File:Formulas201801021122.png|680px]] | |||
<div style="margin:20px 0 20px;"> | |||
<span style="background-color:#f98012;box-shadow: 0 5px 10px #cbcbcb;border: none;color:white;padding: 8px 16px;text-align:center;text-decoration: none;cursor:pointer;">[http://35.193.77.29/mod/quiz/view.php?id=173 <span style="color:white;">Play it </span>]</span> [[Formulas_question_type#Examples|Login info]] ''(Open in new tab: Ctrl+Shift+Click)'' | |||
</div> | |||
</div> | |||
Revision as of 23:43, 26 January 2018
Hon Wai Lau's examples
Example 01 - Minimal question
For a minimal question, you must define a sub-question with:
- mark
- answer
- grading criteria
- question text (optional)
General Question name! Factorial - example 1 Variables Random variables n = {2:8}; m = {2:8}; Global variables x = fact(n)*fact(m); Main question Question text! Factorial - example 1 Part 1 Part's mark* 1 Answer type Number Answer* x Grading criteria* Absolute error == 0 Part's text Calculate: {n}! x {m}! = {_0} (enter value using integer format) Combined feedback For any correct response The correct answer is: {x} For any incorrect response The correct answer is: {x}
The Formulas question should look like this:
Play it Login info (Open in new tab: Ctrl+Shift+Click)