[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 // EXAMPLE QUESTIONS for the GIFT import filter 2 // by Paul Tsuchido Shew, January 2004. 3 4 //-----------------------------------------// 5 // Examples from the class description. 6 //-----------------------------------------// 7 8 Who's buried in Grant's tomb?{~Grant ~Jefferson =no one} 9 10 Grant is {~buried =entombed ~living} in Grant's tomb. 11 12 Grant is buried in Grant's tomb.{FALSE} 13 14 Who's buried in Grant's tomb?{=no one =nobody} 15 16 When was Ulysses S. Grant born?{#1822:1} 17 18 19 //-----------------------------------------// 20 // Examples from the documentation. 21 //-----------------------------------------// 22 23 // ===Multiple Choice=== 24 25 Who's buried in Grant's tomb?{~Grant ~Jefferson =no one} 26 27 Grant is {~buried =entombed ~living} in Grant's tomb. 28 29 The American holiday of Thanksgiving is celebrated on the { 30 ~second 31 ~third 32 =fourth 33 } Thursday of November. 34 35 Japanese characters originally came from what country? { 36 ~India 37 =China 38 ~Korea 39 ~Egypt} 40 41 // ===Short Answer=== 42 43 Who's buried in Grant's tomb?{=no one =nobody} 44 45 Two plus two equals {=four =4}. 46 47 // ===True-False=== 48 49 Grant is buried in Grant's tomb.{F} 50 51 The sun rises in the east.{T} 52 53 // ===Matching=== 54 55 Matching Question. { 56 =subquestion1 -> subanswer1 57 =subquestion2 -> subanswer2 58 =subquestion3 -> subanswer3 59 } 60 61 Match the following countries with their corresponding capitals. { 62 =Canada -> Ottawa 63 =Italy -> Rome 64 =Japan -> Tokyo 65 =India -> New Delhi 66 } 67 68 // ===Numerical=== 69 70 When was Ulysses S. Grant born? {#1822} 71 72 What is the value of pi (to 3 decimal places)? {#3.1415:0.0005}. 73 74 What is the value of pi (to 3 decimal places)? {#3.141..3.142}. 75 76 When was Ulysses S. Grant born? {# 77 =1822:0 78 =%50%1822:2} 79 80 // OPTIONS 81 82 // ===Line Comments=== 83 84 // Subheading: Numerical questions below 85 What's 2 plus 2? {#4} 86 87 88 // ===Question Name=== 89 90 ::Kanji Origins::Japanese characters originally 91 came from what country? {=China} 92 93 ::Thanksgiving Date::The American holiday of Thanksgiving is 94 celebrated on the {~second ~third =fourth} Thursday of November. 95 96 // ===Feedback=== 97 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!} 102 103 Who's buried in Grant's tomb?{ 104 =no one#excellent answer! 105 =nobody#excellent answer!} 106 107 // ===Specify text format=== 108 [markdown]Who's buried in **Grant's tomb**?{ 109 =no one#excellent answer! 110 =nobody#excellent answer!} 111 112 // ===Percentage Answer Weights=== 113 Grant is buried in Grant's tomb.{FALSE#No one is buried in Grant's tomb.} 114 115 Difficult question.{~wrong answer ~%50%half credit answer =full credit answer} 116 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!}. 122 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.} 127 128 // ===Multiple Answers=== 129 130 What two people are entombed in Grant's tomb? { 131 ~No one 132 ~%50%Grant 133 ~%50%Grant's wife 134 ~Grant's father } 135 136 What two people are entombed in Grant's tomb? { 137 ~%-50%No one 138 ~%50%Grant 139 ~%50%Grant's wife 140 ~%-50%Grant's father } 141 142 // ===Special Characters=== 143 Which answer equals 5? { 144 ~ \= 2 + 2 145 = \= 2 + 3 146 ~ \= 2 + 4 } 147 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). 159 } 160 161 162 163 //-----------------------------------------// 164 // Examples from gift/format.php. 165 //-----------------------------------------// 166 167 Who's buried in Grant's tomb?{~Grant ~Jefferson =no one} 168 169 Grant is {~buried =entombed ~living} in Grant's tomb. 170 171 Grant is buried in Grant's tomb.{FALSE} 172 173 Who's buried in Grant's tomb?{=no one =nobody} 174 175 When was Ulysses S. Grant born?{#1822:5} 176 177 Match the following countries with their corresponding 178 capitals.{=Canada->Ottawa =Italy->Rome =Japan->Tokyo} 179 180 //-----------------------------------------// 181 // More complicated examples. 182 //-----------------------------------------// 183 184 ::Grant's Tomb::Grant is { 185 ~buried#No one is buried there. 186 =entombed#Right answer! 187 ~living#We hope not! 188 } in Grant's tomb. 189 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!} 194 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. 199 }. 200 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. 207 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |