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: GIFT format.

GIFT format: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 1: Line 1:
{{Questions}}
{{Questions}}


With GIFT format you can write multiple-choice, true-false, short answer, matching and numerical questions.
With GIFT format you can write multiple-choice, true-false, short answer, matching and numerical questions in a text editor in a simple format. For large numbers of questions, GIFT is likely to provide the quickest way of bulk loading your 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)
[[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 ...
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 ...
The file '''must''' be correctly encoding in [[UTF8]]. Beware of some of Microsoft's "fake" Unicode implementation which are not compatible and may result in strange characters appearing in your quizzes.  


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.
===Hints and Tips===


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.
* 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.
 
* 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)'''
* 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.
 
* There are Word macros available for easily creating GIFT files. See [http://www.soberit.hut.fi/sprg/resources/moodle/GiftConverter.html].
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


[[Category:Teacher]]
[[Category:Teacher]]

Revision as of 11:23, 8 March 2007



With GIFT format you can write multiple-choice, true-false, short answer, matching and numerical questions in a text editor in a simple format. For large numbers of questions, GIFT is likely to provide the quickest way of bulk loading your questions.

File:Gift.jpg
screen shot from quiz help file documentation


Please note that the blank lines between questions are required when loading a text file from Windows. (maybe unix as well)

Here is an GIFT example for quiz-import, easy to copy and change ...

The file must be correctly encoding in UTF8. Beware of some of Microsoft's "fake" Unicode implementation which are not compatible and may result in strange characters appearing in your quizzes.

Hints and Tips

  • 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.
  • 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)
  • 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.
  • There are Word macros available for easily creating GIFT files. See [1].