From d0f86d165415f87a33f88f120b9385f4cfddf9c4 Mon Sep 17 00:00:00 2001
From: thetrinity GIFT GIFT is a versitile import filter that provides a quick and easy method for teachers to write Moodle quiz questions as a text file. It supports true-false, short answer and multiple-choice questions, as well as insertion of a blank line for the missing word format. Below are examples of the following question types: multiple choice, missing word, true-false and short-answer. GIFT is a versitile import filter that provides a quick and easy method for teachers to write Moodle quiz questions as a text file. It supports multiple-choice, true-false, short answer and numerical questions, as well as insertion of a blank line for the missing word format. Below are examples of the following question types: multiple choice, missing word, true-false, short-answer and numerical. Various question-types can be mixed in a sigle text file, and the format also supports question names, feedback comments and percentage-weight grades. GIFT stands for "General Import Format Template." Various question-types can be mixed in a sigle text file, and the format also supports question names, feedback comments and percentage-weight grades.
GIFT is a versitile import filter that provides a quick and easy method for teachers to write Moodle quiz questions as a text file. GIFT can process three basic question types recognized by Moodle: Multiple Choice, True-False and Short Answer. Various question-types can be mixed in a sigle text file, and the format also supports question names, feedback comments and percentage-weight grades. GIFT stands for "General Import Format Template." Curly brackets are used to indicate answers in the GIFT format. GIFT is a versitile import filter that provides a quick and easy method for teachers to write Moodle quiz questions as a text file. GIFT can process four basic question types recognized by Moodle: Multiple Choice, True-False, Short Answer and Numerical. Various question-types can be mixed in a single text file, and the format also supports question names, feedback comments and percentage-weight grades. Multiple Choice: Multiple Choice: Missing Word is a subset of the multiple choice question that automatically inserts a fill-in-the-blank line (like this _____) in the middle of the sentence. To make this kind of question, place the answers where you want the line to appear in the sentence. The Missing Word format automatically inserts a fill-in-the-blank line (like this _____) in the middle of the sentence. To use the Misssing Word format, place the answers where you want the line to appear in the sentence. If the answers come before the closing punctuation mark, a fill-in-the-blank line will be inserted for the "missing word" format. All question types can be written in the Missing Word format. There must be a blank line (double carriage return) seperating questions. For clarity, the answers can be written on seperate lines and even indented. For example: Short Answer: Short Answer: Note that if the answers come before the closing punctuation mark, a fill-in-the-blank line will be inserted.
- If there is only one correct Short Answer, it may be written without the equal sign prefix, providing it cannot be confused as True-False.
+ If there is only one correct Short Answer, it may be written without the equal sign prefix, as long as it cannot be confused as True-False.
True-False:DESCRIPTION
- Who's buried in Grant's tomb?{~Grant ~Jefferson =no one}
Grant is {~buried =entombed ~living} in Grant's tomb.
Grant is buried in Grant's tomb.{FALSE}
- Who's buried in Grant's tomb?{=no one =nobody}
-
DOCUMENTATION
QUESTION TYPES
-
- For multiple choice questions, each answer is separated with a tilde (~), and the correct answer is prefixed with an equal sign (=).
For multiple choice questions, wrong answers are prefixed with a tilde (~) and the correct answer is prefixed with an equal sign (=). Who's buried in Grant's tomb?{~Grant ~Jefferson =no one}
- Grant is {~buried =entombed ~living} in Grant's tomb.
+ The American holiday of Thanksgiving is celebrated on the {
- ~second
- ~third
- =fourth
+ ~second
+ ~third
+ =fourth
} Thursday of November.
Japanese characters originally came from what country? {
- ~India
- =China
- ~Korea
- ~Egypt}
-
- Short answer questions are seperated by an equal sign (=), indicating that they are all correct answers. Short answer questions must not contain a tilde. They can also be written as a missing word statement.
Answers in Short Answer question-type are all prefixed by an equal sign (=), indicating that they are all correct answers .The answers must not contain a tilde. Who's buried in Grant's tomb?{=no one =nobody}
Two plus two equals {=four =4}.
-
- In this question-type the answer indicates whether the statement is true or false. The answer should be written as {TRUE} or [FALSE}, or abbreviated to {T} or {F}.
Grant is buried in Grant's tomb.{F} The sun rises in the east.{T}-
+ +
Numerical:
+ The answer section for Numerical questions must start with a number sign (#). Numerical answers can include an error margin, which is written following the correct answer, seperated by a colon. So for example, if the correct answer is anything between 1.5 and 2.5, then it would be written as follows {#2:0.5}. This indicates that 2 with an error margin of 0.5 is correct (i.e., the span from 1.5 to 2.5). If no error margin is specified, it will be assumed to be zero.
When was Ulysses S. Grant born? {#1922} + + What is the value of pi (to 3 decimal places)? {#3.1415:0.0005}.+
Optionally, numerical answers can be written as a span in the following format {MinimumValue..MaximumValue}.
+What is the value of pi (to 3 decimal places)? {#3.141..3.142}.+
Moodle's browser interface does not support multiple numerical answers, but Moodle's code can and so does GIFT. This can be used to specify numerical multiple spans, and can be particularly usefully when combined with percentage weight grades. If multiple answers are used, they must be seperated by an equal sign, like short answer questions.
+When was Ulysses S. Grant born? {# + =1922:0 + =%50%1922:2}+
Note that since Moodle's browser GUI doesn't support multiple answers for Numerical questions, there's no way to see them or edit them through Moodle. The only way to change a numerical answer beyond the first, is to delete the question and re-import it (or use something like phpMyAdmin).
In addition to these basic question types, this filter offers the following options: question name, feedback and percentage answer weight.
Question Name:
A question name can be specified by placing it first and enclosing it within double colons.
If no question name is specified, the entire question will be used as the name by default.
-Feedback Comments:
Feedback can be included for each answer by following the comment with a hash mark(#) and the comment.
Feedback Comments:
Feedback can be included for each answer by following the answer with a number sign (# also known as a hash mark) and the feedback.
What's the answer to this multiple-choice question?{ ~wrong answer#comment on the wrong answer ~another wrong answer#comment on this wrong answer @@ -99,14 +111,14 @@ within percent signs (e.g., %50%). This option can be combined with feedback comNote that it is possible to specify percentage answer weights that are NOT available through the browser interface. Such answer-weights will calculate correctly (according to the value assigned when imported), and will appear normal to students taking the test. But such answer-weights will not display correctly to teachers when editing them through Moodle's Edit Question interface. The pull-down menu only allows certain fixed values, and if the answer-weight does not exactly match one of those predetermined values, then it will not display correctly. If you edit such a question through the browser interface, the answer weight will change to that displayed.
Other Options:
+ Other options are avalable through editing the import filter gift/format.php.
- Other options are avalable through editing the import filter gift.php.Short Answer questions can be made case sensitive by changing "0" to "1" in the following line:
$question->usecase = 0; // Ignore caseIt is also possible to enable multiple answers, by uncommenting the appropriate code. Search for "enable multiple answers" to find the lines.
CREDITS
-This filter was written through the collaboration of numerous members of the Moodle community. It was originally based on the simple missingword format. In July 2003, Thomas Robb wrote the original code for the percentage answer weight parser and comment insertion . Paul Tsuchido Shew rewrote the filter in December 2003 incorporating community suggestions for a more robust question format, and adding the question name parser, additional question types and other features.
-GIFT documentation, version 1.0. Paul Tsuchido Shew, 12 Dec. 2003.
+This filter was written through the collaboration of numerous members of the Moodle community. It was originally based on the missingword format, which included code from Thomas Robb and others. Paul Tsuchido Shew wrote this filter in December 2003 incorporating community suggestions for a more robust question format. The name was conceived as an acronym for "General Import Format Technology" or something like that, but it's too long for a simple filter like this, so it just GIFT.
+GIFT documentation, version 1.2. Paul Tsuchido Shew, 6 Jan 2004.
-