## Activities: Offline Quiz

mod_offlinequiz
Maintained by 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).
1337 sites
107 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.

### Example

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.

### Installation

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

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)
• logo URL (text field)
• 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)

### Awards

• Thu, Jul 18, 2019, 3:21 PM
Hello, After the upgrade of our Moodle server, we are trying to upgrade from an older version of OFFLINE QUIZ to the latest version 3.6.2 on a MOODLE 3.7.1 server. We are using PHP 7.3. There is an error during the upgrapde : Exception : Argument 3 passed to mysqli_native_moodle_database::delete_records_select() must be of the type array or null, string given, called in [dirroot]/mod/offlinequiz/db/upgrade.php on line 1440. Can anyone help ?
• Thu, Jul 18, 2019, 4:16 PM
hi Christophe,
Yes there is a bug in 3.6.2. You can fix this by changing line 1440 to " $DB->delete_records_select('offlinequiz_choices', 'id ' .$querysql, \$queryparams);"
then it will work,
We will publish a new fixed version soon.
• Thu, Jul 18, 2019, 4:35 PM
It works ! thanks a lot
• Thu, Aug 8, 2019, 3:13 PM
We just published bug fix version 3.6.3 of the Offline Quiz for Moodle 3.6 (fixed wrong upgrade to 3.6.2).
• Mon, Aug 12, 2019, 8:47 PM
We just published version 3.7.0 of the Offline Quiz for Moodle 3.7 – have fun.
• Tue, Aug 27, 2019, 5:24 PM
Hi, and thanks a lot for this very useful plugin.
I have a difficulty with a long offline quiz of about 100 questions, so my answer form is printed on 2 pages.
Offline Quiz corrects easily the first page, but I have a lot of errors with the second. In most cases, I have to identify it manually as the second page.
I have not find how different pages of the same answer form are differentiated.
How can I have a best result?
Have I to create 2 different offline quizzes?
• Tue, Aug 27, 2019, 6:14 PM
Hi Philippe,
thanks for trying out our plugin.
the plugin uses a bar code at the bottom right to identify the page number, which is only evaluated, if there is more than one page.
We didn't have any big problems with the multi page feature yet and it is tested quite well, even though not many people use it.
Have you tried using a different white value of your paper?
Have you tried using a higher DPI for the scans?
greetings
Thomas
• Thu, Sep 5, 2019, 8:22 PM
Hi,

The plugin, in version 3.4.2, worked perfectly when installed on Moodle version 3.4.

After upgrading to Moodle 3.5, I updated the plugin to version 3.5.4 and after this update the plugin has stopped working (it does not correctly recognize scanned pages).

In an another Moodle installation (development) I installed versions M3.6 and M3.7 with the plugin in their respective versions and could not make it work, as it has the same problems of not recognizing the scanned pages.

My current situation is as follows: I have Moodle version 3.5.2 with the plugin installed on version 3.4.2 working perfectly.

Any idea what might be going on?

Ricardo
• Fri, Oct 4, 2019, 4:41 PM
This is exactly what I need at my school if i can get it to work.
I'm on Moodle 3.7 and also use the 3.7 plugin
• Fri, Oct 4, 2019, 7:22 PM
Hello,
the evaluation is done via scheduled tasks (also called cron)
have you set up your moodle instance to run cron? https://docs.moodle.org/37/en/Cron
• Wed, Dec 4, 2019, 9:01 PM
Hi

I can't work out how to generate an id number for the learner to write onto the answer sheet. Please advise, thanks
• Wed, Dec 4, 2019, 9:36 PM
you can choose where to get it from in the admin settings: the setting "useridentification" will set the column in the user table which will be compared.
normally it is the column "idnumber" which can be set by an admin and/or with automated scripts.
• Thu, Dec 5, 2019, 4:30 PM
Thank you for your prompt reply Thomas. I have looked at the admin setting "useridentification" and it was set at the default [7]=idnumber. This gives me a id number column in the moodle user table but there is no number in there. How do I generate that number? When i add a user (from the list of possible users enrolled on the course), the user has () after the name - ie Test Learner ().
I tried the two admin settings show in the instructions. First was a[7]=username which gives me a username in the moodle user table column but i still have no ID number for the mark sheet.
Then I tried b[5]cd=idnumber. Tihs gave me the same result as the default setting.

SO, I'm stuck! Everything else seems to work okay - I've generated papers and mark sheets athen scanned and uploaded the sheet. This has been processed but cannot be marked as there is no ID number.

• Thu, Dec 5, 2019, 8:03 PM
Hi Jane,
on most moodle instances for universities or schools the students have their matriculation number or studentid in their profile field "idnumber" which is only changable by an administrator by default.
In our case filling this value is done automatically.
You can either set it as an admin manually or find another way to have any identifcation number in the users table for each participant that the participant has to know before the test.

The b[5]cd=idnumber would mean that the plugin will look into the table "users" and look for the field "idnumber" (right part of the equation). In there it searches for a[5]cd (left part of the equation) and replace the [5] with the number that the participant has crossed on the answer sheet, which is exactly 5 digits long.
So if a user would have crossed 04711 it will search for "b04711cd" in the idnumber field.

Hope this helps.
• Fri, Dec 6, 2019, 12:45 AM
Thomas, thank you, you've cracked it. Our learners do not have an ID number. I added one to my test learners profile and it all works. Fabulous.

Thank you so much