Moodle Plugins directory: Offline Quiz | Moodle.org

Offline Quiz
Offline Quiz
The Offline Quiz activity allows the creation of multiple choice tests with questions from the question bank of a Moodle course, which are handed out to students in printed form. After completion, the answer forms are scanned and can be automatically evaluated online directly in Moodle.>
No support in the comments section on this page! See below for bug reports and support.
Usage
Teachers want to conduct the final examination of a course with several hundred students in a lecture hall. For this purpose, an offline quiz is created in a Moodle course and the quiz is filled with questions from the question bank. To make copying more difficult, the lecturers decide to create several groups in the offline quiz that contain different questions. The forms are then generated, downloaded and printed out.
Two forms are handed out to students during the exam: the questionnaire (contains the questions and answer options) and the corresponding answer sheet (form with boxes to tick the selected answers). After the exam, all answer sheets are scanned and uploaded in the offline quiz of the Moodle course for evaluation.
Forms that could not be automatically evaluated by the system, e.g. because the ID number was incorrectly ticked or ticks or crossed out ticks are unclear, must be corrected by the teachers in the offline quiz.
Teachers can now allow students to view their exams online, where they can, for example, see the points they have achieved and check that their ticks have been recognized.
Note: The question types multiple choice, description and all-or-nothing multiple choice are currently supported. Questionnaires can be downloaded in PDF, DOCX or LaTeX format.
Documentation
You can find a documentation for the plugin on the AMC website.
Bug Reports / Support
We try our best to deliver bug-free plugins, but we can not test the plugin for every platform, database, PHP and Moodle version. If you find any bug please report it on GitHub. Please provide a detailed bug description, including the plugin and Moodle version and, if applicable, a screenshot.
You may also file a request for enhancement on GitHub. If we consider the request generally useful and if it can be implemented with reasonable effort we might implement it in a future version.
You may also post general questions on the plugin on GitHub, but note that we do not have the resources to provide detailed support.
It will have support for changing the font, so yo can use it with asian/arabic/other characters.
You can check it out in our github in the master branch.
I'm happy to find this plugin, I've tried installing version 4.4 then tried making the quiz.
but I had a problem when uploading student answers and the message "answer form(s) is/are pending evaluation" appeared. I waited a few minutes and the message still didn't disappear, then the next day it still opened and didn't disappear. I wonder if there was something wrong with me during the installation process? or maybe there is another solution?
Any idea?
Since v4.4 regrading is done automatically and the "offlinequiz_regrade" sub plugin is no longer required. You can probably simply ignore this message. Otherwise open an issue on GitHub.
First of all, thank you for this great plugin, which has proven to be extremely useful for our very big cohorts! I was wondering whether you are thinking of developping an additional feature or a new plugin based on Offline Quiz, allowing students to write a text (assignment) on paper that could be scanned, then read by AI on Moodle (then graded manually or half manually). That would be awesome considering the upcoming need for this kind of evaluation that allows teachers - especially in the Humanities - to ensure students are not using AI for their homework / assignments.
I am working in an RHEL 9 environment with Moodle 4.5 and I can not manage to get the results readen. I have scanned my tests as pdf and tif, in black and white, 300dpi.
The file are processed, but it says "File is not an image or PDF doesn't contain an image" or Tiff is not supported. I have seen the files have arrived to moodledata/temp/offlinequiz/import/ but there is something there not working.
When I click on the information I get these details:
error/Could not load file
Más información sobre este error
Información de depuración:
Error code: Could not load file
$a contents:
Trazado de la pila (stack):
line 521 of /mod/offlinequiz/report/rimport/scanner.php: core\exception\moodle_exception thrown
line 127 of /mod/offlinequiz/correct.php: call to offlinequiz_page_scanner->load_stored_image()
If I try a different version of Moodle (4114) in the same server, I get these messages in the log of the sheduled task:
Execute scheduled task: Answer sheet evaluation for the offlinequiz-plugin (mod_offlinequiz\task\page_evaluation_task)
... started 15:47:02. Current memory use 5.4 MB.
job 5: evaluating /usr/data/moodle4114/temp/offlinequiz/import/1748270791615959989/20250526133541612_0001.jpg
Warning: imagecreatefrompng(/usr/data/moodle4114/temp/1748270822_dst.png): Failed to open stream: No such file or directory in /var/www/html/moodle4114/mod/offlinequiz/report/rimport/scanner.php on line 1055
... used 27 dbqueries
... used 0.81038284301758 seconds
Scheduled task failed: Answer sheet evaluation for the offlinequiz-plugin (mod_offlinequiz\task\page_evaluation_task),imagesx(): Argument #1 ($image) must be of type GdImage, bool given
Backtrace:
* line 1062 of /mod/offlinequiz/report/rimport/scanner.php: call to imagesx()
* line 1416 of /mod/offlinequiz/report/rimport/scanner.php: call to offlinequiz_page_scanner->rotate_90()
* line 482 of /mod/offlinequiz/report/rimport/scanner.php: call to offlinequiz_page_scanner->adjust()
* line 168 of /mod/offlinequiz/cron.php: call to offlinequiz_page_scanner->load_image()
* line 40 of /mod/offlinequiz/classes/task/page_evaluation_task.php: call to offlinequiz_evaluation_cron()
* line 263 of /lib/cronlib.php: call to mod_offlinequiz\task\page_evaluation_task->execute()
* line 120 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
* line 73 of /lib/cronlib.php: call to cron_run_scheduled_tasks()
* line 178 of /admin/cli/cron.php: call to cron_run()
It seems that there is some extension missing in my server or that I have to give writing permissions to some folder in moodledata. I would appreciate any help on this, many thanks in advance.
Best,