gift: Difference between revisions
Jump to navigation
Jump to search
(→Format symbol table: redundant) |
(→Format) |
||
Line 10: | Line 10: | ||
! Symbol !! Use | ! Symbol !! Use | ||
|- | |- | ||
| // text || Comment | | // text || Comment (optional) | ||
|- | |- | ||
| ::title:: || Question title (optional) | | ::title:: || Question title (optional) | ||
Line 20: | Line 20: | ||
| {T} or {F} || True or False answer | | {T} or {F} || True or False answer | ||
|- | |- | ||
| { ... = | | { ... =correct answer ... } || Correct answer for multiple choice, multiple answer, or fill-in-the-blank | ||
|- | |- | ||
| { ... ~ | | { ... ~incorrect answer ... } || Wrong answer | ||
|- | |- | ||
| { ... = | | { ... =item -> matching answer ... } || Answer for matching questions | ||
|- | |- | ||
| # | | #answer feedback || Answer feedback or comment | ||
|- | |- | ||
| {# || Numeric | | {# || Numeric answer start | ||
|- | |- | ||
| answer:range || Answer and tolerance range answering numeric question | | answer:range || Answer and tolerance range answering numeric question | ||
|- | |- | ||
| %n%answer:range || Weight n percent credit for numeric answers in | | =%n%answer:range || Weight n percent credit for multiple numeric answers in ranges | ||
|- | |- | ||
| } || End answers | | } || End answers |
Revision as of 07:56, 5 February 2010
<entry-title>GIFT Syntax</entry-title>
- short URL
- http://bit.ly/giftax
The GIFT picoformat allows writing multiple-choice, true-false, short answer, matching, missing word, and numerical quiz questions in a simple text format. The GPLed Moodle Course/Learning Management System can import and export questions in the GIFT picoformat.
Format
Symbol | Use |
---|---|
// text | Comment (optional) |
::title:: | Question title (optional) |
text | Question text |
{ | Start answer(s) |
{T} or {F} | True or False answer |
{ ... =correct answer ... } | Correct answer for multiple choice, multiple answer, or fill-in-the-blank |
{ ... ~incorrect answer ... } | Wrong answer |
{ ... =item -> matching answer ... } | Answer for matching questions |
#answer feedback | Answer feedback or comment |
{# | Numeric answer start |
answer:range | Answer and tolerance range answering numeric question |
=%n%answer:range | Weight n percent credit for multiple numeric answers in ranges |
} | End answers |
Examples
// true/false ::Q1:: 1+1=2 {T} // multiple choice ::Q2:: What's between orange and green in the spectrum? {=yellow ~red ~blue} // fill-in-the-blank ::Q3:: Two plus {=two =2} equals four. // matching ::Q4:: Which animal eats which food? { =cat -> cat food =dog -> dog food } // math range question ::Q5:: What is a number between 2 and 4? {#3:2} // alternate layout ::Title :: Question { =Correct answer 1 =Correct answer 2 ~Wrong answer 1 #response to wrong answer 1 ~Wrong answer 2 #response to wrong answer 2 }
Note: the table and example above was adapted from and then migrated back to the GPL-licensed Moodle site, not copied from there.