Skip to content

Authoring quick start 8: setting up a quiz

1 - First question | 2 - Question variables | 3 - Feedback | 4 - Randomisation | 5 - Question tests | 6 - Multipart questions | 7 - Simplification | 8 - Quizzes

This part of the authoring quick start guide deals with setting up a Moodle quiz. The following video explains the process:


Once you have authored questions, you will want to include these in a quiz. Alternatively, you might like to set up a quiz using the sample questions.

The purpose of this document is to provide a guide, from a beginner's point of view, to some of the steps that need to be taken when setting up mathematics questions in a Moodle quiz, using the computer aided assessment package STACK. Note, this guide risks duplicating the Moodle quiz documentation, which should also be consulted.

These have been edited from notes created by Dr Maureen McIver, Department of Mathematical Sciences, Loughborough University, UK, July 2016.

Finding questions

You need to start by identifying questions for the quiz and the easiest way to do this is to start with a question that is already written and modify it to meet your needs.

If you have been following the quick start guide so far, you should also know how to write your own question from scratch.

Importing questions from an existing server

Let us look at how you import questions from an existing server into your server.

First, you must export the existing questions:

  1. log into the module on the Moodle server from which you wish to export questions, and click on Question bank in the Administration block. Then click on Export,
  2. Click on Moodle XML format, then choose the category you want to export. Moodle only lets you export individual categories.
  3. Click on Export questions to file. This will download a file with the all the questions that category.

To import these questions into your course:

  1. Log into your module on the Moodle server and click on Question bank in the Administration block,
  2. Click on Import,
  3. Click on Moodle XML format then drag and drop the ?.xml file from your Downloads folder on your desktop, and click Import and then Continue. A copy of the questions should then appear in the question bank for your module and you can modify them as you want.

Constructing a Moodle quiz

Once you have constructed a question bank (either by importing them or writing them yourselves) you can put them into a Moodle quiz.

Included within the STACK sample materials is a "Syntax quiz", and it is recommended that you put a copy of this on your own page. This lets students can practice the syntax of how to enter answers into a STACK quiz before they try a specific quiz for your module, and also checks that they can read the mathematics on their machine.

Question behaviours

Question behaviours dictate how many attempts students are given and how penalties are distributed. There are a number of question behaviours available for a Moodle quiz. The most important are:

Immediate feedback, which only lets students have one try at each question, but gives feedback either immediately after answering a question, or only when all questions are answered and submitted. This is useful for standard formative/summative quizzes.

Deferred feedback, which only lets students have one try at each question, and does not give feedback until after some given date. This is useful for examinations and coursework quizzes where you don't want students to share worked solutions.

Interactive with multiple tries, which lets students have a finite amount of tries to solve the question, with a hint being displayed after each. It deducts a penalty mark for each incorrect attempt. This is useful for formative quizzes where you want to give hints. Note that the amount of attempts is set as one more than the amount of Hints given in each question. Hints are found under the Options section when editing a question.

Adaptive, which lets the student have as many tries as they want, but deducts a penalty from the total score of the question for each time the student got the answer wrong. This is useful for testing questions and for informal practice quizzes.

Setting up the quiz

  1. Go to the Moodle page and click Turn editing on.
  2. Go to the block where you want to put the quiz or add an additional block and click Add an activity or resource, click Quiz and then Add.
  3. Give the quiz a name and put any description you want in the Description box. LaTeX can be used here if you want.
  4. Click on Timing and fix the opening and closing times.
  5. Click on Grade and fix the Attempts allowed. E.g. you could use Unlimited for a practice quiz and 1 for a coursework quiz.
  6. Click on Question behaviour and choose your desired question behaviour, as discussed above.
  7. Under Review options, you can choose what students are allowed to see during or after the quiz. This includes options such as whether their answer is correct, their mark and feedback. We recommend turning off Right answer for both practice and coursework quizzes, and allowing General feedback (worked solution) to be on for a practice quiz, but off for coursework quizzes.
  8. Finish by clicking Save and return to course.

You can toggle whether students can see the quiz/topic by clicking Edit and Show.

Note, the Moodle question bank will automatically create a category for the quiz. It is sometimes sensible to put all the questions used in the quiz into this category, but note that you will only see the category if you have previously navigated to the quiz.

Adding questions

Click on the quiz, and then Edit quiz.

  1. Click Add then click from question bank, select a category then one or more of the STACK questions you have created.
  2. Click Add selected questions to the quiz then click Save and return to the main module page.

To preview the quiz, click on it, then click Preview quiz now.

Extra time

If you have students who need extra time you need to set up Groups with these students in. Here is an example for a group of students who need 25% extra time.

  1. Under Course Adminstration, click on Users, then Groups, then Create group.
  2. Give the group a name, e.g. "25% extra time". You can put more details of who the group is for in the Group description box. Click Save changes.
  3. Add/remove users, then click on the ID for a particular student for this group and click Add to put them in the group. Repeat for each student who needs to be in this group.
  4. Go back and click on the Moodle quiz. In the Quiz Adminstration, click on Group overrides, then click Add group override, choose the relevant group, set the appropriate Time limit for the quiz for that group and click Save.

Viewing results

To see the students' results in for a particular quiz, go the the quiz, then under Quiz adminstration click on Results, then Grades. This will let you see all attempts, with the overall grade and the grade for each question. You can choose to download the results in Excel here as well.

Next steps

You should now be able to work with quizzes in Moodle.

This concludes the authoring quick start guide. The STACK documentation is comprehensive, and there are many things you might want to look at next. For example, you can