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

From MoodleDocs


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:

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