Topic outline
-
-
At Level 2, we looked at how you can create a question with composite answers in a single part.
In this section, we'll take this a step further and look at how to assign customised marks for each answer.
We'll go back to the example question:
If a = (random number), b = (random number) and c = 10, calculate a + b, b + c, and then add the two numbers together.
You can see the final version of the question embedded at the bottom of this page.
(We have included an .xml file of this question below. You can download this and import it into your course website question bank. Use it to develop your own basic formula questions.)
Steps
1. Create and name the formula question and add random and global variables.
-
2. Add the answers. You will need to include the answers for all required responses, separated by commas.
3. Add the main question text. You will need to define spaces in the question text for the various answers (and units.)
4. Set the allowable error.
Watch out for this if using relative error with composite answers: When you have multiple answers within one part of a Formula question, the relative error is only calculated ONCE, based on the largest of the answers. Moodle then applies that error to ALL answers. This can really impact on the effectiveness of the question. To avoid this, recreate the question, using separate parts for each answer.5. Assign grading variables and the grading criterion for composite answers, to be used in conjunction with the answer variables, as follows:
Grading variables and grading criteria work together to tell Moodle how you want the student's answers to be marked (if you want something more complicated than the Moodle default).
- The grading criteria are expressed as an instruction which tells Moodle how to allocate the marks for the question. You can see the style of the formula in the example below. To enter the grading criteria, start by deciding on the allocation of marks and setting up your coded instruction. Tick ‘Expert’ and enter the code. The easiest way to follow this is through the example below.
- The grading variables are the variables which you will use to represent student answers in the grading criteria instructions. The variable represents a correct answer from the students, and is either true or not - the student either got the answer right or didn't. If the variable is true, then Moodle will follow the instructions in the criteria formula and give the student the mark. If it's not true, Moodle will give the student no mark for that response. To set the grading variables, click ‘Show more…’ to view the additional settings. Enter a variable for each answer - note these are NOT the variables which you put in the answer box earlier.
-
6. Write the text for the question, defining a space for the student's answer and the unit if needed. Make sure that you tell the student how the mark allocation will work.
7. Add feedback, and instantiate if you wish.
8. Save and preview your question.
You can see the final form of the example question embedded below. Try inputting different answers - a mixture of correct and incorrect - to see how the question responds and marks your answer.
Watch out for this: As the question setup gets more complex, it will become more important to test the question and test using both reasonable and unreasonable answers.
-
2.2 KB application/xml Uploaded 8/11/22, 12:04
You can import this question into your course question bank. You can then copy and adapt it.
Administration - Course administration - Question bank - Import - Moodle xml format - Choose the file - Import. (Watch a video on how to import the question into a course website.)
-