Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: Formulas: Hon Wai Lau's examples.

Formulas: Hon Wai Lau's examples: Difference between revisions

From MoodleDocs
Line 14: Line 14:
<pre style="font-size:113%;width: 97%;">
<pre style="font-size:113%;width: 97%;">
General
General
   Question name!      Factorial - example 1
   Question name!      Minimal question
Variables
  Random variables    n = {2:8};
                      m = {2:8};
  Global variables    x = fact(n)*fact(m);
Main question
Main question
   Question text!      Factorial - example 1
   Question text!      What is 2 + 2?
Part 1
Part 1
   Part's mark*        1
   Part's mark*        1
   Answer type          Number
   Answer type          Number
   Answer*              x
   Answer*              4
   Grading criteria*    Absolute error == 0
   Grading criteria*    Relative error < 0.01
  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>
</pre>


Line 40: Line 29:


<div style="margin:20px 0 20px;">
<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)''
<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=291 <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 00:01, 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:

Formulas201801021122.png

Play it    Login info  (Open in new tab: Ctrl+Shift+Click)



Back to top of page

← FORMULAS QUESTION TYPE

In other languages

Español
Français