Export questions: Difference between revisions

From MoodleDocs
m (Correct corruption caused by visual editor)
 
(17 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Managing questions}}
{{Managing questions}}
Questions may be exported from the [[Quiz module]] and the [[Question bank]] in any one of 3 formats:  
Questions may be exported from the [[Quiz module]] and the [[Question bank]] in any one of 4 formats:  
 
* [[Aiken format]]
* [[GIFT format]]
* [[GIFT format]]
* [[Moodle XML format]]
* [[Moodle XML format]]
* [[XHTML format]]  
* [[XHTML format]]  
Questions may be exported into Word format using a contributed plugin, [[Word table format]]. These can then be easily used to support offline review and editing of all components of a set of questions, or to create paper tests. Questions may also be exported into an alternative HTML tabular format using another contributed plugin, [[HTML table format]]. This format displays all components of a question, for easier offline review.
Questions may be exported into Word format using a contributed plugin, [[Word table format]]. These can then be easily used to support offline review and editing of all components of a set of questions, or to create paper tests. Questions may also be exported into an alternative HTML tabular format using another contributed plugin, [[HTML table format]]. This format displays all components of a question, for easier offline review.


Note: Images are only included if you export the questions using [[Moodle XML format]].
{{Note|If you export questions from a Moodle 1.9 server, the exported file might contain only the relative URL to the image hosted in the 1.9 server, while exported questions from Moodle 2.x and 3.x severs might contain the actual image encoded in base 64. This explains why some question bank import-export operations include all the images and some others don't.}}
==Process==
==Process==
*Click ''Administration>Quiz Administration>Question bank>Export.'' 
*Click into the Quiz
 
*From Course navigation click the link Question bank
[[File:exportquestions.png]]
*From the dropdown select Export.
[[File:4exportqq.png|thumb|Export quiz questions]]




Line 19: Line 21:
*Click on the export questions to file button
*Click on the export questions to file button
*You are invited to download the file to your computer.
*You are invited to download the file to your computer.
 
==How to export a single question in XML format ==
<ol>
<li value="1">
<p>Click on the quiz name then, from the gear icon, select "Edit quiz":</p>
[[File:Download_this_question_in_XML_format_-_1.png|600px]]
</li>
<li value="2">
<p>Click on the "Preview question" icon of the file you want to export:</p>
[[File:Download_this_question_in_XML_format_-_2.png|600px]]
</li>
<li value="3">
<p>Click on the "Download this question in Moodle XML format":</p>
[[File:Download_this_question_in_XML_format_-_3.png|600px]]
</li>
</ol>
==Example uses of exported files==
==Example uses of exported files==
*GIFT and Moodle XML formats can be imported into the [[Lesson module]] And [[Question bank]] via [[Import questions|an import question process]].
*GIFT and Moodle XML formats can be imported into the [[Lesson module]] And [[Question bank]] via [[Import questions|an import question process]].
*Exported question files on one server, can be imported into another Moodle site/server
*Exported question files on one server, can be imported into another Moodle site/server
*GIFT and Moodle XML formats can be tweaked to create word processing or spreadsheet documents suitable for paper tests or vetting.
*GIFT and Moodle XML formats can be tweaked to create word processing or spreadsheet documents suitable for paper tests or vetting.
*In case you want to convert your Moodle XML file into text format upload XML to [http://moodle.heroku.com http://moodle.heroku.com]. It automatically generates *.txt with your questions
*GIFT format can be used with other tools created with this [https://github.com/fuhrmanator/GIFT-grammar-PEG.js#software-using-the-parser open-source GIFT parser].
 
==See also==
==See also==
*[http://moodle.heroku.com Moodle XML Converter] to generate in and from XML.
*[https://moodle.org/plugins/qformat_wordtable Microsoft Word File Import/Export (Question Format)] additional plugin to export questions (including images) in a question bank into a Word file, and also import questions from structured tables in a Word (.docx format) file.
*[ https://github.com/chaksridhar/MoodleXlator] Python based Proprietary text to Moodle XML xlator
*[https://github.com/chaksridhar/MoodleXlator Moodle XML Translator ] Python based Proprietary text to Moodle XML xlator
*[http://www.moodle2word.net Website for converting Moodle Questions into tables in a Microsoft Word file, and vice versa].
*[http://www.moodle2word.net Website for converting Moodle Questions into tables in a Microsoft Word file, and vice versa].
 
*[http://www.learningseekers.com/products MoXMLE a Java based application] Converts a simple TXT file into Moodle XML format.
*[https://github.com/fuhrmanator/GIFT-grammar-PEG.js PEG.js grammar for GIFT] (open source) parses GIFT format into JavaScript objects (questions) for rapid (web) application development. Also available on npmjs as [https://www.npmjs.com/package/gift-pegjs gift-pegjs].
[[de:Fragen exportieren]]
[[de:Fragen exportieren]]
[[es:Exportar preguntas]]
[[es:Exportar preguntas]]

Latest revision as of 01:17, 16 November 2023

Questions may be exported from the Quiz module and the Question bank in any one of 4 formats:

Questions may be exported into Word format using a contributed plugin, Word table format. These can then be easily used to support offline review and editing of all components of a set of questions, or to create paper tests. Questions may also be exported into an alternative HTML tabular format using another contributed plugin, HTML table format. This format displays all components of a question, for easier offline review.

Note: Images are only included if you export the questions using Moodle XML format.

Note: If you export questions from a Moodle 1.9 server, the exported file might contain only the relative URL to the image hosted in the 1.9 server, while exported questions from Moodle 2.x and 3.x severs might contain the actual image encoded in base 64. This explains why some question bank import-export operations include all the images and some others don't.

Process

  • Click into the Quiz
  • From Course navigation click the link Question bank
  • From the dropdown select Export.
Export quiz questions


  • Select the output type required for the exported file.
  • Use the pulldown menu to select the question category you want to export
  • Check if you want the category name to exported and/or the context to be included. This only applies to some formats and is used to restore this information on import.
  • Click on the export questions to file button
  • You are invited to download the file to your computer.

How to export a single question in XML format

  1. Click on the quiz name then, from the gear icon, select "Edit quiz":

    Download this question in XML format - 1.png

  2. Click on the "Preview question" icon of the file you want to export:

    Download this question in XML format - 2.png

  3. Click on the "Download this question in Moodle XML format":

    Download this question in XML format - 3.png

Example uses of exported files

  • GIFT and Moodle XML formats can be imported into the Lesson module And Question bank via an import question process.
  • Exported question files on one server, can be imported into another Moodle site/server
  • GIFT and Moodle XML formats can be tweaked to create word processing or spreadsheet documents suitable for paper tests or vetting.
  • GIFT format can be used with other tools created with this open-source GIFT parser.

See also