Difference between revisions of "Moodle: Gift Format"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Sumber: https://docs.moodle.org/311/en/GIFT_format GIFT format allows someone to use a text editor to write multiple-choice, true-false, short answer, matching missing word a...")
 
Line 11: Line 11:
 
==Multiple choice==
 
==Multiple choice==
  
For multiple choice questions, wrong answers are prefixed with a tilde (~) and the correct answer is prefixed with an equal sign (=).
+
Untuk pertanyaan multiple choice, jawaban salah diberi prefix (~) dan jawaban benar diberi prefix (=).
  
Here is a simple acceptable GIFT multiple choice format:
+
Berikut adalah contoh pertanyaan multiple choice dalam GIFT format:
  
 
  Who's buried in Grant's tomb?{=Grant ~no one ~Napoleon ~Churchill ~Mother Teresa }
 
  Who's buried in Grant's tomb?{=Grant ~no one ~Napoleon ~Churchill ~Mother Teresa }
Here is a longer format that uses most of the GIFT elements:
+
 
 +
Berikut adalah format yang lebih panjang yang menggunakan banyak elemen GIFT:
  
 
  // question: 1 name: Grants tomb
 
  // question: 1 name: Grants tomb
Line 31: Line 32:
 
  }
 
  }
  
 +
==Multiple choice with multiple right answers==
 +
 +
That is, using checkboxes, not radio buttons:
 +
 +
What two people are entombed in Grant's tomb? {
 +
    ~%-100%No one
 +
    ~%50%Grant
 +
    ~%50%Grant's wife
 +
    ~%-100%Grant's father
 +
}
 +
 +
 +
==True-false==
 +
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}.
 +
 +
// question: 0 name: TrueStatement using {T} style
 +
::TrueStatement about Grant::Grant was buried in a tomb in New York City.{T}
 +
 +
// question: 0 name: FalseStatement using {FALSE} style
 +
::FalseStatement about sun::The sun rises in the West.{FALSE}
 +
 +
 +
==Short answer==
 +
 +
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.
 +
 +
Here are two examples using the simple method showing possible right answers for credit.
 +
 +
Who's buried in Grant's tomb?{=Grant =Ulysses S. Grant =Ulysses Grant}
 +
Two plus two equals {=four =4}
 +
 +
 +
==Matching==
 +
 +
Matching pairs begin with an equal sign (=) and are separated by this symbol "->". There must be at least three matching pairs.
 +
 +
Match the following countries with their corresponding capitals. {
 +
    =Canada -> Ottawa
 +
    =Italy  -> Rome
 +
    =Japan  -> Tokyo
 +
    =India  -> New Delhi
 +
    }
 +
 +
Matching questions do not support feedback or percentage answer weights.
 +
 +
 +
 +
==Missing word==
 +
 +
The Missing Word format automatically inserts a fill-in-the-blank line (like this _____) in the middle of the sentence. To use the Missing Word format, place the answers where you want the line to appear in the sentence.
 +
 +
Moodle costs {~lots of money =nothing ~a small amount} to download from moodle.org.
 +
 +
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) separating questions. For clarity, the answers can be written on separate lines and even indented. Some examples:
 +
 +
Mahatma Gandhi's birthday is an Indian holiday on  {
 +
~15th
 +
~3rd
 +
=2nd
 +
} of October.
 +
 +
Since {
 +
  ~495 AD
 +
  =1066 AD
 +
  ~1215 AD
 +
  ~ 43 AD
 +
}
 +
the town of Hastings England has been "famous with visitors".
 +
 +
 +
 +
==Numerical questions==
 +
 +
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, separated 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.
 +
 +
Here is a simple numerical format question. It will accept a range of 5 years.
 +
 +
When was Ulysses S. Grant born?{#1822:5}
 +
 +
It is a good idea to check the margins of the range, 3.141 is not counted as correct and 3.142 is considered in the range.
 +
 +
What is the value of pi (to 3 decimal places)? {#3.14159: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 separated by an equal sign, like short answer questions.
 +
 +
When was Ulysses S. Grant born? {#
 +
    =1822:0
 +
    =%50%1822:2
 +
}
 +
 +
Note that since Moodle's browser GUI didn't support multiple answers for Numerical questions, there's no way in older Moodle versions 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). But better would be to upgrade your Moodle to at least 1.9.
  
  

Revision as of 06:44, 16 September 2021

Sumber: https://docs.moodle.org/311/en/GIFT_format

GIFT format allows someone to use a text editor to write multiple-choice, true-false, short answer, matching missing word and numerical questions in a simple format that can be imported. The GIFT format is also an export file format available in Question bank. The format has been developed within the Moodle Community but other software may support it to a greater or lesser degree.

  • When creating a large numbers of questions, GIFT can provide a quick way of bulk loading questions either into a question category, or into a Lesson.
  • Sometimes it is easier proofing questions in a question category by viewing them in a GIFT file.



Multiple choice

Untuk pertanyaan multiple choice, jawaban salah diberi prefix (~) dan jawaban benar diberi prefix (=).

Berikut adalah contoh pertanyaan multiple choice dalam GIFT format:

Who's buried in Grant's tomb?{=Grant ~no one ~Napoleon ~Churchill ~Mother Teresa }

Berikut adalah format yang lebih panjang yang menggunakan banyak elemen GIFT:

// question: 1 name: Grants tomb
::Grants tomb::Who is buried in Grant's tomb in New York City? {
=Grant
~No one
#Was true for 12 years, but Grant's remains were buried in the tomb in 1897
~Napoleon
#He was buried in France
~Churchill
#He was buried in England
~Mother Teresa
#She was buried in India
}

Multiple choice with multiple right answers

That is, using checkboxes, not radio buttons:

What two people are entombed in Grant's tomb? {
   ~%-100%No one
   ~%50%Grant
   ~%50%Grant's wife
   ~%-100%Grant's father
}


True-false

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}.

// question: 0 name: TrueStatement using {T} style
::TrueStatement about Grant::Grant was buried in a tomb in New York City.{T}
// question: 0 name: FalseStatement using {FALSE} style
::FalseStatement about sun::The sun rises in the West.{FALSE}


Short answer

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.

Here are two examples using the simple method showing possible right answers for credit.

Who's buried in Grant's tomb?{=Grant =Ulysses S. Grant =Ulysses Grant}
Two plus two equals {=four =4}


Matching

Matching pairs begin with an equal sign (=) and are separated by this symbol "->". There must be at least three matching pairs.

Match the following countries with their corresponding capitals. {
   =Canada -> Ottawa
   =Italy  -> Rome
   =Japan  -> Tokyo
   =India  -> New Delhi
   }

Matching questions do not support feedback or percentage answer weights.


Missing word

The Missing Word format automatically inserts a fill-in-the-blank line (like this _____) in the middle of the sentence. To use the Missing Word format, place the answers where you want the line to appear in the sentence.

Moodle costs {~lots of money =nothing ~a small amount} to download from moodle.org.

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) separating questions. For clarity, the answers can be written on separate lines and even indented. Some examples:

Mahatma Gandhi's birthday is an Indian holiday on  {
~15th
~3rd
=2nd
} of October.
Since {
  ~495 AD
  =1066 AD
  ~1215 AD
  ~ 43 AD
}
the town of Hastings England has been "famous with visitors".


Numerical questions

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, separated 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.

Here is a simple numerical format question. It will accept a range of 5 years.

When was Ulysses S. Grant born?{#1822:5}

It is a good idea to check the margins of the range, 3.141 is not counted as correct and 3.142 is considered in the range.

What is the value of pi (to 3 decimal places)? {#3.14159: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 separated by an equal sign, like short answer questions.

When was Ulysses S. Grant born? {#
   =1822:0
   =%50%1822:2
}

Note that since Moodle's browser GUI didn't support multiple answers for Numerical questions, there's no way in older Moodle versions 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). But better would be to upgrade your Moodle to at least 1.9.



Referensi