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).|
- tabular form
Describe the question text, correct answers, wrong answers, etc., one element per line. Insert a blank line between each question.
Choose the prefectural capital of Hokkaido.
Tomakomai CityChoose the prefectural capital of Aomori Prefecture.
Choose the prefectural capital of Iwate Prefecture.
Choose the prefectural capital of Miyagi Prefecture.
City of Miyagi
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||Hokkaido (northernmost of the four main islands of Japan)||sa:||Sapporo City||Hakodate City||Obihiro City||Tomakomai City|
|6||Aomori prefecture (Tohoku area)||sa:||Aomori city||Hachinohe City||Tsugaru City||Tokai Village|
|7||Iwate prefecture (Tohoku area)||sa:||Morioka City||Iwate City||Hanamaki City||Ichinoseki City|
|8||Miyagi prefecture (Tohoku area)||sa:||Sendai city||City of Miyagi||Morioka City||Natori City|
|9||Akita prefecture (Tohoku area)||sa:||Akita City||Yuzawa City||Oga City||Daisen City|
Various optional values are available
You can create more flexible quizzes by setting optional values.
The list of optional items isthis way (direction close to the speaker or towards the speaker)for more information.