By entering option values, you can customize various things, such as fixing the order in which questions and choices are displayed, or showing/hiding the correct answer when answering incorrectly.
How to set the option value
Put the following at the beginning of the question text (quiz.txt) in the format "# attribute name:value".
#shuffle_questions:true/false (←Select whether to display the questions in the order in which they were created.)
#shuffle_choices:true/false (←Select whether to display the choices in the order in which they were created.)
#show_correct_answer:true/false (←Choose whether to show the correct answer when the answer is incorrect.)
|item name||default value||Description.|
|shuffle_questions||true||Select whether the order in which the questions are displayed should be random (true) or fixed (false).|
|shuffle_choices||true||Select whether the display order of the options should be random (true) or fixed (false).|
|show_correct_answer||true||Select whether to show the correct answer when the answer is incorrect (true) or not (false).|
Describe the question text, correct answers, wrong answers, etc., one element per line. Insert a blank line between each question.
Choose the capital city of Japan.
Tomakomai CityChoose the prefectural capital of Aomori Prefecture.
State of Mexico
Choose the capital city of Italy.
Choose the prefectural capital of Miyagi Prefecture.
Choose the prefectural capital of Akita Prefecture.
- The first line, #shuffle_questions:false, sets the order of questions to be submitted from the top of the text.
- The second line, #shuffle_choices:false, sets the order of the choices for the questions to be submitted in order from the top of the text.
- The third line, #show_correct_answer:false, is set to not show the correct answer when the answer is incorrect.
- The fourth and subsequent lines are the problem definition. The problem definition is divided into several blocks separated by blank lines. In each block, the first line contains the question text, the second line contains the question type "sa:", the third line contains the correct answer choices, and the fourth and subsequent lines contain the wrong answer choices.
To create a question in tabular format, write "#format:table" at the beginning of the file, with the optional values on the second and subsequent lines, one by one.
|5||Choose the capital city of Japan.||sa:||Tokyo||Osaka||Kobe||Kyoto|
|6||Choose the capital city of Mexico.||sa:||Carbon dioxide||Nitrogen||State of Mexico||Guanajuato|
|7||Choose the capital city of Italy.||sa:||Rome||Milan||Naples||Turin|
|8||Choose the capital city of Australia.||sa:||Canberra||Sydney||Rome||Brisbane|
|9||Choose the capital city of Thailand.||sa:||Bangkok||Nonthaburi||Songkhla||Chonburi|