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: Import questions.

Import questions: Difference between revisions

From MoodleDocs
m (French link)
Line 11: Line 11:
Prior to version 1.6 of Moodle the question file was assumed to be encoded in the same way as the language being used within the Moodle site. With Moodle 1.6 and onwards it is assumed that the imported file is encoded in UTF8. If it is not an external tool must be used to change the encoding. Note that if only basic 'latin' characters are used, then the coding issue can generally be ignored.
Prior to version 1.6 of Moodle the question file was assumed to be encoded in the same way as the language being used within the Moodle site. With Moodle 1.6 and onwards it is assumed that the imported file is encoded in UTF8. If it is not an external tool must be used to change the encoding. Note that if only basic 'latin' characters are used, then the coding issue can generally be ignored.


== GIFT ==
[[GIFT]]
With GIFT format you can write multiple-choice, true-false, short answer, matching and numerical questions.
[[Image:Gift.jpg|frame|left|screen shot from quiz help file documentation]]<br style="clear:both;"> Please note that the blank lines between questions are required when loading a text file from Windows. (maybe unix as well)
 
Here is an [http://moodle.org/file.php/5/moddata/forum/121/236161/GIFT-examples.zip GIFT example] for quiz-import, easy to copy and change ...
 
Hint: use the ::title:: at the beginning of every question to organize this for you (01 - testquestion), otherwise it would be difficult to find the right question for changes, moodle will take the beginning of every question as internal title ...
 
For UTF8 be careful: dont upload special signs (german ü,ä,.. and other stuff like that), without converting it on your local pc to utf8! notepad2 [http://www.flos-freeware.ch/notepad2.html notepad2] may be helpful in that case.
 
In the Lesson module, in a question page, correct answers jump by default to Next page and incorrect answers jump to This page (i.e. student has to "try again"). When importing from a GIFT format file, this is exactly the mechanism which is used.
 
If you want a student to be taken directly from one question to the next irrespective of their answer being correct or incorrect: in the Lesson Settings, set Maximum number of attempts: to 1. Please note, however, that a message "correct / incorrect" will still be displayed to the student upon answering each question. If you do not want this (default) feedback message to be displayed then enter your own feedback message (i.e. "continue", "---", etc.) In case you want no visible message displayed then enter a non-breaking space as feeback, so you'll have to put a # after the answer which may be ~3 and '''write & n b s p ; after that.(without spaces between these characters)'''
To find out how moodle works - you may export a sample of your questions with GIFT and check them out!
 
If you want to use curly braces, { or }, or equal sign, =, or # or ~ in a GIFT file (for example in a math question including TeX expressions) you must "escape" them by preceding them with a \ directly in front of each { or } or =. It is possible to use a replace program/macro/editor filter to do this conversion before importing to Moodle.
 
With GIFT its easy to organize a questions catalogue at your local pc and change and share questions


== Aiken ==
== Aiken ==

Revision as of 15:40, 13 February 2007



Moodle provides a number of different formats to import questions into question banks. Some enable imports to be made from proprietary quiz software, others provide questions to be imported from human-readable text files and others provide Moodle specific formats to enable transfer of questions between quiz banks.

In the case of the text formats (in particular GIFT), once you get to know a format, it may be easier to simply type the questions into a text file than to use the web interface. You can just keep typing instead of waiting for new web pages to load for each question.

The available formats vary with the version of Moodle and if it is a quiz or lesson module.

Character Encoding

Prior to version 1.6 of Moodle the question file was assumed to be encoded in the same way as the language being used within the Moodle site. With Moodle 1.6 and onwards it is assumed that the imported file is encoded in UTF8. If it is not an external tool must be used to change the encoding. Note that if only basic 'latin' characters are used, then the coding issue can generally be ignored.

GIFT

Aiken

Aiken format is an easy way of writing multiple-choice questions for import. It’s a very easy, readable format.

screen shot from quiz help file documentation


Missing Word

If you’re going to write a lot of missing word multiple choice questions, the missing word format is an easy way to create them.

File:Missing word.jpg
screen shot from quiz help file documentation


AON

The same as the missing word format, except it creates matching questions from the multiple choice questions.

Blackboard

Template:Moodle 1.7 If you’re converting from Blackboard to Moodle, you can export your course and then import the question pools into Moodle using the Blackboard format.

WebCT

Template:Moodle 1.7 Currently, the WebCT format only supports importing multiple-choice and short answers questions

Course Test Manager

This will enable you to import questions from the Course Test Manager from Course Technology

Embedded Answers (Cloze)

The Cloze format is a multiple question, multiple answer question with embedded answers. They can be a bit tricky to develop, but they are a unique way of asking questions

Version 1.7 formats

Import Question 1.7 menu

See also

  • The help file available from the help button next to the import file button gives a lot of detail about each format.
  • Using Moodle escaping problem in gift import? forum discussion