You are here

examples.txt in Quiz 6.5

Same filename and directory in other branches
  1. 6.6 includes/moodle/question/format/gift/examples.txt
//  EXAMPLE QUESTIONS for the GIFT import filter
//  by Paul Tsuchido Shew, January 2004.

//-----------------------------------------//
//        EXAMPLES FROM 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}

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


//-----------------------------------------//
//       EXAMPLES FROM DOCUMENTATION
//-----------------------------------------//

// ===Multiple Choice===

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
} Thursday of November.

Japanese characters originally came from what country? {
    ~India
    =China
    ~Korea
    ~Egypt}

// ===Short Answer===

Who's buried in Grant's tomb?{=no one =nobody}

Two plus two equals {=four =4}.

// ===True-False===

Grant is buried in Grant's tomb.{F}

The sun rises in the east.{T}

// ===Matching===

Matching Question. {
    =subquestion1 -> subanswer1
    =subquestion2 -> subanswer2
    =subquestion3 -> subanswer3
    }
    
Match the following countries with their corresponding capitals. {
    =Canada -> Ottawa
    =Italy  -> Rome
    =Japan  -> Tokyo
    =India  -> New Delhi
    }

// ===Numerical===

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

What is the value of pi (to 3 decimal places)? {#3.1415:0.0005}.

What is the value of pi (to 3 decimal places)? {#3.141..3.142}.

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

// OPTIONS 

// ===Line Comments===

// Subheading: Numerical questions below
What's 2 plus 2? {#4}


// ===Question Name===

::Kanji Origins::Japanese characters originally
came from what country? {=China}

::Thanksgiving Date::The American holiday of Thanksgiving is 
celebrated on the {~second ~third =fourth} Thursday of November.

// ===Feedback===

What's the answer to this multiple-choice question?{
~wrong answer#feedback comment on the wrong answer
~another wrong answer#feedback comment on this wrong answer
=right answer#Very good!}
    
Who's buried in Grant's tomb?{
=no one#excellent answer!
=nobody#excellent answer!}

// ===Specify text format===
[markdown]Who's buried in **Grant's tomb**?{
=no one#excellent answer!
=nobody#excellent answer!}

// ===Percentage Answer Weights===
Grant is buried in Grant's tomb.{FALSE#No one is buried in Grant's tomb.}

Difficult question.{~wrong answer ~%50%half credit answer =full credit answer}
         
::Jesus' hometown::Jesus Christ was from {
    ~Jerusalem#This was an important city, but the wrong answer.
    ~%25%Bethlehem#He was born here, but not raised here.
    ~%50%Galilee#You need to be more specific.
    =Nazareth#Yes! That's right!}.
    
::Jesus' hometown:: Jesus Christ was from {
    =Nazareth#Yes! That's right!
    =%75%Nazereth#Right, but misspelled.
    =%25%Bethlehem#He was born here, but not raised here.}

// ===Multiple Answers===

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

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

// ===Special Characters===
Which answer equals 5? {
     ~ \= 2 + 2
     = \= 2 + 3
     ~ \= 2 + 4  }

::GIFT Control Characters::
Which of the following is NOT a control character for the GIFT import format? {
   ~ \~     # \~ is a control character.
   ~ \=     # \= is a control character.
   ~ \#     # \# is a control character.
   ~ \{     # \{ is a control character.
   ~ \}     # \} is a control character.
   = \\     # Correct! \\ (backslash) is not a control character. BUT,
              it is used to escape the control characters. So, to specify
              a literal backslash, you must escape it with a backslash
              (as shown in this example).
}



//-----------------------------------------//
//     EXAMPLES FROM gift/format.php
//-----------------------------------------//

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}

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

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

//-----------------------------------------//
//     MORE COMPLICATED EXAMPLES
//-----------------------------------------//

::Grant's Tomb::Grant is {
      ~buried#No one is buried there.
      =entombed#Right answer!
      ~living#We hope not!
} in Grant's tomb.

Difficult multiple choice question.{
     ~wrong answer           #comment on wrong answer
     ~%50%half credit answer #comment on answer
     =full credit answer     #well done!}

::Jesus' hometown (Short answer ex.):: Jesus Christ was from {
     =Nazareth#Yes! That's right!
     =%75%Nazereth#Right, but misspelled.
     =%25%Bethlehem#He was born here, but not raised here.
}.

//this comment will be ignored by the filter
::Numerical example::
When was Ulysses S. Grant born? {#
     =1822:0      #Correct! 100% credit
     =%50%1822:2  #He was born in 1822.
                  You get 50% credit for being close.
}

File

includes/moodle/question/format/gift/examples.txt
View source
  1. // EXAMPLE QUESTIONS for the GIFT import filter
  2. // by Paul Tsuchido Shew, January 2004.
  3. //-----------------------------------------//
  4. // EXAMPLES FROM DESCRIPTION
  5. //-----------------------------------------//
  6. Who's buried in Grant's tomb?{~Grant ~Jefferson =no one}
  7. Grant is {~buried =entombed ~living} in Grant's tomb.
  8. Grant is buried in Grant's tomb.{FALSE}
  9. Who's buried in Grant's tomb?{=no one =nobody}
  10. When was Ulysses S. Grant born?{#1822:1}
  11. //-----------------------------------------//
  12. // EXAMPLES FROM DOCUMENTATION
  13. //-----------------------------------------//
  14. // ===Multiple Choice===
  15. Who's buried in Grant's tomb?{~Grant ~Jefferson =no one}
  16. Grant is {~buried =entombed ~living} in Grant's tomb.
  17. The American holiday of Thanksgiving is celebrated on the {
  18. ~second
  19. ~third
  20. =fourth
  21. } Thursday of November.
  22. Japanese characters originally came from what country? {
  23. ~India
  24. =China
  25. ~Korea
  26. ~Egypt}
  27. // ===Short Answer===
  28. Who's buried in Grant's tomb?{=no one =nobody}
  29. Two plus two equals {=four =4}.
  30. // ===True-False===
  31. Grant is buried in Grant's tomb.{F}
  32. The sun rises in the east.{T}
  33. // ===Matching===
  34. Matching Question. {
  35. =subquestion1 -> subanswer1
  36. =subquestion2 -> subanswer2
  37. =subquestion3 -> subanswer3
  38. }
  39. Match the following countries with their corresponding capitals. {
  40. =Canada -> Ottawa
  41. =Italy -> Rome
  42. =Japan -> Tokyo
  43. =India -> New Delhi
  44. }
  45. // ===Numerical===
  46. When was Ulysses S. Grant born? {#1822}
  47. What is the value of pi (to 3 decimal places)? {#3.1415:0.0005}.
  48. What is the value of pi (to 3 decimal places)? {#3.141..3.142}.
  49. When was Ulysses S. Grant born? {#
  50. =1822:0
  51. =%50%1822:2}
  52. // OPTIONS
  53. // ===Line Comments===
  54. // Subheading: Numerical questions below
  55. What's 2 plus 2? {#4}
  56. // ===Question Name===
  57. ::Kanji Origins::Japanese characters originally
  58. came from what country? {=China}
  59. ::Thanksgiving Date::The American holiday of Thanksgiving is
  60. celebrated on the {~second ~third =fourth} Thursday of November.
  61. // ===Feedback===
  62. What's the answer to this multiple-choice question?{
  63. ~wrong answer#feedback comment on the wrong answer
  64. ~another wrong answer#feedback comment on this wrong answer
  65. =right answer#Very good!}
  66. Who's buried in Grant's tomb?{
  67. =no one#excellent answer!
  68. =nobody#excellent answer!}
  69. // ===Specify text format===
  70. [markdown]Who's buried in **Grant's tomb**?{
  71. =no one#excellent answer!
  72. =nobody#excellent answer!}
  73. // ===Percentage Answer Weights===
  74. Grant is buried in Grant's tomb.{FALSE#No one is buried in Grant's tomb.}
  75. Difficult question.{~wrong answer ~%50%half credit answer =full credit answer}
  76. ::Jesus' hometown::Jesus Christ was from {
  77. ~Jerusalem#This was an important city, but the wrong answer.
  78. ~%25%Bethlehem#He was born here, but not raised here.
  79. ~%50%Galilee#You need to be more specific.
  80. =Nazareth#Yes! That's right!}.
  81. ::Jesus' hometown:: Jesus Christ was from {
  82. =Nazareth#Yes! That's right!
  83. =%75%Nazereth#Right, but misspelled.
  84. =%25%Bethlehem#He was born here, but not raised here.}
  85. // ===Multiple Answers===
  86. What two people are entombed in Grant's tomb? {
  87. ~No one
  88. ~%50%Grant
  89. ~%50%Grant's wife
  90. ~Grant's father }
  91. What two people are entombed in Grant's tomb? {
  92. ~%-50%No one
  93. ~%50%Grant
  94. ~%50%Grant's wife
  95. ~%-50%Grant's father }
  96. // ===Special Characters===
  97. Which answer equals 5? {
  98. ~ \= 2 + 2
  99. = \= 2 + 3
  100. ~ \= 2 + 4 }
  101. ::GIFT Control Characters::
  102. Which of the following is NOT a control character for the GIFT import format? {
  103. ~ \~ # \~ is a control character.
  104. ~ \= # \= is a control character.
  105. ~ \# # \# is a control character.
  106. ~ \{ # \{ is a control character.
  107. ~ \} # \} is a control character.
  108. = \\ # Correct! \\ (backslash) is not a control character. BUT,
  109. it is used to escape the control characters. So, to specify
  110. a literal backslash, you must escape it with a backslash
  111. (as shown in this example).
  112. }
  113. //-----------------------------------------//
  114. // EXAMPLES FROM gift/format.php
  115. //-----------------------------------------//
  116. Who's buried in Grant's tomb?{~Grant ~Jefferson =no one}
  117. Grant is {~buried =entombed ~living} in Grant's tomb.
  118. Grant is buried in Grant's tomb.{FALSE}
  119. Who's buried in Grant's tomb?{=no one =nobody}
  120. When was Ulysses S. Grant born?{#1822:5}
  121. Match the following countries with their corresponding
  122. capitals.{=Canada->Ottawa =Italy->Rome =Japan->Tokyo}
  123. //-----------------------------------------//
  124. // MORE COMPLICATED EXAMPLES
  125. //-----------------------------------------//
  126. ::Grant's Tomb::Grant is {
  127. ~buried#No one is buried there.
  128. =entombed#Right answer!
  129. ~living#We hope not!
  130. } in Grant's tomb.
  131. Difficult multiple choice question.{
  132. ~wrong answer #comment on wrong answer
  133. ~%50%half credit answer #comment on answer
  134. =full credit answer #well done!}
  135. ::Jesus' hometown (Short answer ex.):: Jesus Christ was from {
  136. =Nazareth#Yes! That's right!
  137. =%75%Nazereth#Right, but misspelled.
  138. =%25%Bethlehem#He was born here, but not raised here.
  139. }.
  140. //this comment will be ignored by the filter
  141. ::Numerical example::
  142. When was Ulysses S. Grant born? {#
  143. =1822:0 #Correct! 100% credit
  144. =%50%1822:2 #He was born in 1822.
  145. You get 50% credit for being close.
  146. }