Note: You are currently viewing documentation for Moodle 3.1. Up-to-date documentation for the latest stable version of Moodle is probably available here: Offline quiz activity.

Offline quiz activity

From MoodleDocs
Note: You can find the most up-to-date English and German documentation for this plugin in the AMC website at

MC Offline quiz module thumbnail.png The Moodle MC Offline quiz module adds paper-and-pencil multiple-choice quizzes to Moodle. In offline quizzes students mark answers to questions on a sheet of paper (the answer form). The students' answer forms are evaluated and graded automatically by the offline quiz module.

More precisely, a complete offline quiz consists (at least) of the following steps:

  • A teacher creates an offline quiz in Moodle and adds multiple-choice questions, all-or-nothing multiple-choice questions or description questions (text) to the quiz. This is very similar to creating online quizzes (standard Moodle quizzes).
  • From the question lists the teacher creates question sheets and answer forms as PDF (DOCX) documents using the module.
  • The question sheets and answer forms are handed out to students for the actual quiz. The students mark the answers they think are correct in the answer form.
  • The teacher scans the filled-in answer forms and uploads the resulting images into the offline quiz. The scanned answer forms are evaluated and graded automatically by the module.
  • If necessary, the teacher corrects errors that might have occurred due to mistakes made by the students or due to bad scan quality.

After results have been created in an offline quiz, students can review their result as usual. If the teacher allows it, students can also see the scanned answer forms and which markings have been recognised as crosses.

The module supports up to six groups which are not related to Moodle course groups. Each group can contain a different set of questions in a different order. Separate question sheets and answer forms are created for the different offline quiz groups.

The module also supports lists of participants which are useful for checking which students actually took part in the exam. Lists of participants are pre-filled with students in Moodle. PDF versions of those lists can be created in the module for easy marking during the exam. The marked lists can be uploaded and evaluated automatically.


The offline quiz module is used intensively at different Austrian universities for mass exams. Hundreds of students can be easily examined at the same time (given enough seating space in lecture halls) without the need for expensive e-testing equipment.


Juergen Zimmer, from the Academic Moodle Cooperation of several Vienna Universities.

Moodle versions

  • This module is available from the Moodle plugins database for Moodle 2.6, Moodle 2.7 and Moodle 2.8.
  • The Moodle 2.8 version released on september 2nd 2015, but seems to have a problem that it can not add specific questions from the question bank, even though adding random questions and making a new question work OK.

Offline quiz edit offline quiz.jpg

Offline quiz add random questions.jpg

Offline quiz add a new question.jpg

  • You can expect a version for Moodle 2.9 to be released approximately in February 2016.
  • There seems to be a version for Moodle 2.5 in Github.
  • There seems to be a version for Moodle 2.2 in Github.

Translations available

The Moodle 2.8 version has French, German and Mexican Spanish language translations made in AMOS.


Copy the module code directly to the "mod/offlinequiz" directory. Open the messages page in the administration area to automatically start the installation.

The automatic analysis of questionnaires requires the activation of an appropriate cronjob (see README.txt).


For the evaluation of answer forms an additional cronjob has to be installed. This should look similar to the following:

    */10 * * * * DATE=`date +\%Y\%m\%d`; php <your moodle root dir>/mod/offlinequiz/cron.php --cli=1 >> /var/log/moodle/cron-olq.log.$DATE 2>&1

but has to be adjusted to your environment. Since the evaluation of answer forms usually takes a lot of system resources, it is recommended to run this cronjob on a separate application server to take load from the frontend servers.

Website settings

In the website admin settings for the module

        Site Administration -> Plugins -> Activity modules -> Offline Quiz

One can choose the default settings for the module and also determine the University Logo that will appear on the top of the answer forms (Logo URL).

The user identification has to be set to a formula describing how the user IDs can be retrieved from the digits marked by the students on the answer forms.

For example:

A user identification formula


means that the students mark a 7 digit number on the answer form. A concatenation of the letter 'a' and that number denotes the 'username' of the user in Moodle's 'user' table.

A formula


means that the students mark a 5 digit number on the answer form. A concatenation of the letter 'b', the marked number, and the string 'cd' denotes the 'idnumber' of the user in Moodle's 'user' table.

Admin settings

As an administrator you can set the default values instance-wide on the settings page for administrators in the MC Offline quiz module.

  • formula for participant identification (text field)
  • mix questions (checkbox)
  • mix answers (checkbox)
  • logo URL (text field)
  • copyright indication (checkbox)
  • settings for exam inspection (checkbox)
  • decimal places (drop down)
  • paper's white level (drop down)
  • 1-click inscription (checkbox)
  • role for inscription (drop down)
  • saving days (text field)

Screenshot of the module

Offline quiz screenshot.png


In case you have any questions regarding this module you can either contact the author of the module ( or the e-learning support of the University of Vienna (

See also

This information was copied from