1 // EXAMPLE QUESTIONS for the GIFT import filter
2 // by Paul Tsuchido Shew, January 2004.
4 //-----------------------------------------//
5 // EXAMPLES FROM DESCRIPTION
6 //-----------------------------------------//
8 Who's buried in Grant's tomb?{~Grant ~Jefferson =no one}
10 Grant is {~buried =entombed ~living} in Grant's tomb.
12 Grant is buried in Grant's tomb.{FALSE}
14 Who's buried in Grant's tomb?{=no one =nobody}
16 When was Ulysses S. Grant born?{#1822:1}
19 //-----------------------------------------//
20 // EXAMPLES FROM DOCUMENTATION
21 //-----------------------------------------//
23 // ===Multiple Choice===
25 Who's buried in Grant's tomb?{~Grant ~Jefferson =no one}
27 Grant is {~buried =entombed ~living} in Grant's tomb.
29 The American holiday of Thanksgiving is celebrated on the {
33 } Thursday of November.
35 Japanese characters originally came from what country? {
43 Who's buried in Grant's tomb?{=no one =nobody}
45 Two plus two equals {=four =4}.
49 Grant is buried in Grant's tomb.{F}
51 The sun rises in the east.{T}
56 =subquestion1 -> subanswer1
57 =subquestion2 -> subanswer2
58 =subquestion3 -> subanswer3
61 Match the following countries with their corresponding capitals. {
70 When was Ulysses S. Grant born? {#1822}
72 What is the value of pi (to 3 decimal places)? {#3.1415:0.0005}.
74 What is the value of pi (to 3 decimal places)? {#3.141..3.142}.
76 When was Ulysses S. Grant born? {#
82 // ===Line Comments===
84 // Subheading: Numerical questions below
88 // ===Question Name===
90 ::Kanji Origins::Japanese characters originally
91 came from what country? {=China}
93 ::Thanksgiving Date::The American holiday of Thanksgiving is
94 celebrated on the {~second ~third =fourth} Thursday of November.
98 What's the answer to this multiple-choice question?{
99 ~wrong answer#feedback comment on the wrong answer
100 ~another wrong answer#feedback comment on this wrong answer
101 =right answer#Very good!}
103 Who's buried in Grant's tomb?{
104 =no one#excellent answer!
105 =nobody#excellent answer!}
107 // ===Specify text format===
108 [markdown]Who's buried in **Grant's tomb**?{
109 =no one#excellent answer!
110 =nobody#excellent answer!}
112 // ===Percentage Answer Weights===
113 Grant is buried in Grant's tomb.{FALSE#No one is buried in Grant's tomb.}
115 Difficult question.{~wrong answer ~%50%half credit answer =full credit answer}
117 ::Jesus' hometown::Jesus Christ was from {
118 ~Jerusalem#This was an important city, but the wrong answer.
119 ~%25%Bethlehem#He was born here, but not raised here.
120 ~%50%Galilee#You need to be more specific.
121 =Nazareth#Yes! That's right!}.
123 ::Jesus' hometown:: Jesus Christ was from {
124 =Nazareth#Yes! That's right!
125 =%75%Nazereth#Right, but misspelled.
126 =%25%Bethlehem#He was born here, but not raised here.}
128 // ===Multiple Answers===
130 What two people are entombed in Grant's tomb? {
136 What two people are entombed in Grant's tomb? {
140 ~%-50%Grant's father }
142 // ===Special Characters===
143 Which answer equals 5? {
148 ::GIFT Control Characters::
149 Which of the following is NOT a control character for the GIFT import format? {
150 ~ \~ # \~ is a control character.
151 ~ \= # \= is a control character.
152 ~ \# # \# is a control character.
153 ~ \{ # \{ is a control character.
154 ~ \} # \} is a control character.
155 = \\ # Correct! \\ (backslash) is not a control character. BUT,
156 it is used to escape the control characters. So, to specify
157 a literal backslash, you must escape it with a backslash
158 (as shown in this example).
163 //-----------------------------------------//
164 // EXAMPLES FROM gift/format.php
165 //-----------------------------------------//
167 Who's buried in Grant's tomb?{~Grant ~Jefferson =no one}
169 Grant is {~buried =entombed ~living} in Grant's tomb.
171 Grant is buried in Grant's tomb.{FALSE}
173 Who's buried in Grant's tomb?{=no one =nobody}
175 When was Ulysses S. Grant born?{#1822:5}
177 Match the following countries with their corresponding
178 capitals.{=Canada->Ottawa =Italy->Rome =Japan->Tokyo}
180 //-----------------------------------------//
181 // MORE COMPLICATED EXAMPLES
182 //-----------------------------------------//
184 ::Grant's Tomb::Grant is {
185 ~buried#No one is buried there.
186 =entombed#Right answer!
190 Difficult multiple choice question.{
191 ~wrong answer #comment on wrong answer
192 ~%50%half credit answer #comment on answer
193 =full credit answer #well done!}
195 ::Jesus' hometown (Short answer ex.):: Jesus Christ was from {
196 =Nazareth#Yes! That's right!
197 =%75%Nazereth#Right, but misspelled.
198 =%25%Bethlehem#He was born here, but not raised here.
201 //this comment will be ignored by the filter
202 ::Numerical example::
203 When was Ulysses S. Grant born? {#
204 =1822:0 #Correct! 100% credit
205 =%50%1822:2 #He was born in 1822.
206 You get 50% credit for being close.