Activities: Offline Quiz

Maintained by Picture of AMC Academic Moodle Cooperation AMC Academic Moodle Cooperation
The MC Offline quiz module (mod/offlinequiz) 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).
1307 sites
87 fans

MC Offline quiz module

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.


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).

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 #0


Picture of AMC Academic Moodle Cooperation
AMC Academic Moodle Cooperation (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of AMC Academic Moodle Cooperation
    Tue, 21 Aug 2018, 5:31 PM
    We just published the newest version of Offline Quiz for Moodle 3.5. Have fun.
  • Picture of Arnault Branche
    Thu, 6 Sep 2018, 9:41 PM
    I have the matriculation number issue too, since my students have alphabetical ID now.

    Do you think that this solution could be workable :
    - A number is assigned to each participant (00000001 , 00000002 , 00000003, etc.)
    - This numbers can be printed in the participant lists, for example
    - Scanned answer forms are associated with correct students thanks to this number.
  • Picture of Iván Sibillà
    Wed, 3 Oct 2018, 4:05 PM
    - Moodle 3.4.1
    - Oracle 12c

    We have activated the CRON line that you mention in your documentation:
    */10 * * * * DATE=`date +\%Y\%m\%d`; php /mod/offlinequiz/cron.php --cli=1 >> /var/log/moodle/cron-olq.log.$DATE 2>&1

    And we get the following read error in the database:
    ERROR: ORA-00932: inconsistent datatypes: expected - got CLOB

    We would be grateful if you could give us a possible solution to an Oracle database on the fields of type CLOB.

    Thank you.
  • Picture of Olivier Valentin
    Thu, 4 Oct 2018, 5:09 PM
    Hi !
    Thank you for this great plugin !
    I tried this morning to include questions using formulas edited with LateX Notation. Formulas appear correctly in the Preview section, but when I edit PDF, Offline Quiz seems unable to find and include the Gif created in moodledata/temp/offlinequiz. Is it normal ? Or does it comes from my MoodleData ?
    Thank for your answer !
  • Picture of Stéphane Poinsart
    Wed, 17 Oct 2018, 6:21 PM

    Thanks for your plugin, it has the potential to make a complicated process well managed and easy to run for teachers, it's great and I'm considering it's possible usage in my university.

    I hope it's ok if i ask a few questions about a few things that i don't know if it's small bugs or incorrect usage on my side.

    1) What should be the proper way to handle the ID when it is not prefixed by zeros in moodle ? E.G. for the student that have the id "42" in moodle i have tried to write 0000042 or just 42, but no student identification is made. If i change the id number in moodle to be also 0000042 it works, but i don't think it's wise to change the way our data is formated in production. Possibly related issue :

    2) When editing the question, moodle often end a line with the additional "br", even when already inside a paragraph. It does not show in the HTML view of moodle, but when on paper, it takes some amount of vertical space and couple of unnecessary pages is not as eco-frienly as it could be smile Would you consider automatically suppressing those extra blank line at the end of the question text and choices to be a better solution ?

    3) Is the marking supposed to be detected to automatically adjust the page position during the scan recognition ? I can anticipate some teachers would don't know how to disable the automatically added margins, even with the reminder (it shrinks a bit and add margins to make sure the content is in the printable zone for A4). They would only discover after the exam that the papers all need to be adjusted ? In my attempt, the recognition failed if i had those margins. Possible related issue (2006) :

    If you would prefer this posted as github issues, or that i contribute to the existing ones, please tell me.

    Best regards,

  • Picture of Grzegorz Rogala
    Fri, 19 Oct 2018, 2:02 PM
    When using Latex in the quiz question, the Latex functions and symbols do not display in-line with the regular question text. Looking forward to a fix.
  • Picture of Thomas Wedekind
    Mon, 22 Oct 2018, 2:24 PM
    @Stéphane Poinsart Firstly thanks for your feedback smile Github Issues are always easier to answer since I can close/open/change them anytime withouth going through all those issues. But we have our own bugtracker. Just don't expect any answers here after my first message.
    to your questiions
    1) sadly this is not possible. The problem is, that the algorithm is failproof in that regard, that it will always try to find a cross in every column. If it doesn't find any it will throw an error. So yes, sadly you would have to format it in the database. I will put it on our todo List, but we have a lot of things to fix in the algorithm which takes a lot of time, so don't expect it to come anytime soon.
    2) Thanks for the info, I will put this on the agenda as well as it's an easy to fix issue.
    3) the marking is supposed to be detected, as long as you use A4. Sometimes the algorithm can't find the crosses and will ask you to put them on the right spot, but this should be rarely necessary.
  • Picture of Thomas Wedekind
    Mon, 22 Oct 2018, 2:28 PM
    @Grzegorz Rogala This is already possible. The option is called "Disable new lines before and after images" and you can either enable it for the whole moodle or for specific tests. Be warned though that this sometimes leads to other styling issues.
  • Picture of Grzegorz Rogala
    Mon, 29 Oct 2018, 1:02 PM
    @Thomas Wedekind Thank you for your reply, Unfortunately, enabling or disabling the setting you mentioned still doesn't solve the Latex problem.

    We have also noticed that when exporting the quiz questions to a PDF document, the quality of the Latex symbols and functions drops significantly, making them difficult to read. They render well on Moodle but when exported to a PDF document they become very blurry and unsharp. Maybe, it can simply be fixed by changing the quality of these images to a higher dpi.

    Looking forward to a reply.
  • C'est moi :-)
    Thu, 8 Nov 2018, 6:16 PM
    I use Moodle 3.5 and the latest version of Offline Quiz. When i reset a course, there's a sentence indicating that reseting function isn't implemented. It would be very usefull. Do you plan to add it? Soon?
    This page could help :
    Thanks in advance
  • Picture of Caroline Tartary
    Fri, 9 Nov 2018, 1:09 AM
    Hi, thank @Thomas Wedekind for this very interesting plugin.
    @Stéphane Poinsart
    3) we noticed large differences in the recognition of markers according to the MFPs used to scan

    Otherwise, we have a problem whith not well read user ids : when we fix them, some user have no grade on result but "partial". What that mean ?

  • Picture of AMC Academic Moodle Cooperation
    Tue, 27 Nov 2018, 5:38 PM
    We just published version 3.5.1 of the Offline Quiz for Moodle 3..5 fixing a bug where under certain circumstances the grades in the downloaded results were not correct.
  • Picture of AMC Academic Moodle Cooperation
    Fri, 30 Nov 2018, 12:57 AM
    We just published version 3.5.2 of the Offline Quiz for Moodle 3..5 fixing a bug where the update of scanned pages leads to wrong results with "missing pages", even though there is only one page in the test.
  • Picture of Stanly Fernandez
    Tue, 4 Dec 2018, 3:38 PM
    I am able to almost everything except scanning the answer sheets. I have the following status "3 answer form(s) is/are pending evaluation." One hour plus and still not results. Any suggestions?
  • Picture of Jaroslav Štěpánek
    Sun, 30 Dec 2018, 5:22 AM
    Hello, I have installed moodle with last version of Offline Quiz. Everything looks good, I created quiz, printed, filled, scanned and uploaded it. But I see only table with these items:

    2 | ? | ? | 29. prosinec 2018, 21.58 | Image type not supported | sken01.pdf has image type | Correct

    If I click to Correct only error page is displayed with "error/Could not load file"

    I tried to run cron job manualy via SSH. There is the log
    Execute scheduled task: Answer sheet evaluation for the offlinequiz-plugin (mod_ offlinequiz\task\page_evaluation_task)
    ... started 21:58:37. Current memory use 33.7MB.
    job 12: evaluating /volume1/web/moodledata/temp/offlinequiz/import/1546116961649 56887/sken01.pdf
    job 12: scannedpage id 12
    2018-12-29-21:58: Import queue with id 12 imported.

    ... used 504 dbqueries
    ... used 11.087849855423 seconds
    Scheduled task complete: Answer sheet evaluation for the offlinequiz-plugin (mod _offlinequiz\task\page_evaluation_task)

    Note: I have installed my moodle on Synology NAS (Apache 2.4, PHP7.0 and MariaDB 10)

    Is there any issue with permission or format of file? I tried scan to PDF, JPG, PDF with OCR. I tried upload single file and batch in zip, but I have still the same result.

    Could you help me?

    Thank you
1 2 3 4 5 6 7 8 9 10
Please login to post comments