Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This refers to Moodle 34.8 from September 2020 onward1 from December 2023 onwards.  


NOTE: Knowledge of Maxima CAS is required to create questions.

...

Choose the STACK question type

Stack question option in question type menuImage Modified


Constructing a question

  • Enter the "Question name". This is a mandatory field and good practice is to make the name unique and meaningful.
  • Enter the "Question variables". These are optional but good practice. Note: A variable name should have at least 2 characters, finish with a semi colon and use a colon rather than the equals sign. e.g. var1: 6; Variables can also be random. e.g. var2: rand (6)

Stack question name and variables fieldsImage Modified

  • Optional: Random group is optional if you want different questions to use the same random seeds.
  • Enter "Question text". Type in the question text that is presented to the students. It accepts input in both standard text and Maxima CAS. To insert variables into the question requires use of {@...@} notation. e.g. What is {@var1@} + {@var2@}? Note: In the question text box, there are variables which are automatically generated. Input refers to the response box and assigns the student input to the variable ans1. This will be used later in the form. The validation variable is a mathematical interpretation of ans1. These should be left as is unless you want to use a different variable than ans1. If you require a question with multiple inputs then additional input and validation variables are needed. 

Image RemovedStack quiz question text field with Atto Editor optionsImage Added

  • Optional: "Specific feedback". By default it shows the feedback from the response tree. This is a more advanced feature.
  • Enter the "Default mark" for the question. 
  • Optional: Add "General feedback". Depending of quiz settings, this is shown to all students after they have finished. You can put a fully worked out response here.
  • Optional. Add an "ID number". This allows you to assign your own ID system to your questions.
  • Enter "Question note". This is compulsory if you use random variables. It has two arguments: questions = answer and is used for checking versions of random questions. it is recommended you first define your question and answer as variables in the "Question variable" field and then enter the Question note in the form \[ {@questionvariable@} = {@answervariable@}. \]. As long as something is entered the question will work but unless you enter a valid formula you will not be able to check the different variants.

Question note fieldImage Modified


Validating the answer

  • Chose the "Input type". Algebraic input is a good general type and accepts algebraic as well as numeric input. The other Input types are advanced features.
  • Type in your "Model answer". This can be an expression or good practice suggests defining the correct answer as a Question variable and you can enter the Question variable as the model answer.
  • Optional: Chose the settings you require for the answer settings.

    Input type and model answerImage Modified

    NOTE: Currently the "Check the type of the response" is causing an error if changed to Yes. Leave on No.

...

Quiet. This option determines whether the feedback is displayed. No means it is not quiet and hence displayed.


Node 1Image Modified


Node when true/false

...

Next field. This determines what happens next after the condition has been met and the score awarded. The feedback is only given if the [stop] is an option. The Next field is used to construct the tree. Choosing another node here automatically appends that node to the current one.


Node 1 when true and Node 1 true feedbackImage Modified