The Question Designer in Möbius supports algorithmic questions, in which an algorithm gives the variables of a question new values.

Algorithm section

  • Add. Algorithm in the Add: list of the question dialog adds an Algorithm section. It is available in Multiple choice, Multiple selection and Numeric questions. See Question Designer.

  • Editor. A code editor with line numbers. The commands of the algorithm are entered here.

  • Preview algorithm. Runs the algorithm. A table lists each variable with a generated Value and its Range. Duration in ms shows the rendering time. Each click generates new values.

  • Delete. Removes the section after the Delete section confirmation.

  • Variables in the question. A variable name, such as $a, is entered in the question text, in the answer and in the Feedback section. Students see the generated values in all three places.

  • Values for each attempt. A new attempt at a quiz generates new values. Resume keeps the values of the attempt. Check out Quiz student view.

Syntax, functions and built-in values

The algorithm uses the syntax of Möbius Classic. Check out these Möbius Classic articles:

Differences from Möbius Classic

  • Algorithm Designer. Möbius Classic has the Algorithm Designer, which builds commands without syntax. The Question Designer in Möbius has the code editor only. See Create question algorithms using the Algorithm Designer.

  • Errors. A syntax error, such as an empty command or missing closing parentheses, shows its message in the Value column of the preview table. A variable name that is not valid shows an alert, and the preview is not displayed.