Formulas: Hon Wai Lau's examples: Difference between revisions
No edit summary |
|||
Line 66: | Line 66: | ||
====<div style="font-family:Lucida Sans Unicode;font-size:116%;color:#f98012;margin:-20px 0 10px;>Example 03 - Multiple parts</div>==== | ====<div style="font-family:Lucida Sans Unicode;font-size:116%;color:#f98012;margin:-20px 0 10px;>Example 03 - Multiple parts</div>==== | ||
By default, all parts will be added at the end. If placeholders are used, the parts will be inserted at the location of placeholders. | By default, all parts will be added at the end of the question. If placeholders are used, the parts will be inserted at the location of placeholders. | ||
<pre style="font-size:113%;width: 97%;"> | <pre style="font-size:113%;width: 97%;"> |
Revision as of 00:50, 27 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! Minimal question Main question Question text! What is 2 + 2? Part 1 Part's mark* 1 Answer type Number Answer* 4 Grading criteria* Relative error < 0.01
The Formulas question should look like this:
Play it Login info (Open in new tab: Ctrl+Shift+Click)
Example 02 - Generate random data
Random data can be defined in the random variables, such as a = {2,3,4,5}. Upon quiz generation, one deterministic value will be chosen.
General Question name! Generate random data Variables Random variables a = {2,3,4,5}; Main question Question text! In this instantiation, a takes the value {a}. Part 1 Part's mark* 1 Answer type Number Answer* a Grading criteria* Relative error < 0.01 Part's text Enter the value of a:
The Formulas question should look like this:
Play it Login info (Open in new tab: Ctrl+Shift+Click)
Example 03 - Multiple parts
By default, all parts will be added at the end of the question. If placeholders are used, the parts will be inserted at the location of placeholders.
General Question name! Generate random data Variables Random variables a = {2,3,4,5}; Main question Question text! In this instantiation, a takes the value {a}. Part 1 Part's mark* 1 Answer type Number Answer* a Grading criteria* Relative error < 0.01 Part's text Enter the value of a:
The Formulas question should look like this:
Play it Login info (Open in new tab: Ctrl+Shift+Click)