Basic information
- Owner: Arthur Liao
- Player ID:
simple-quiz
- Player URL: https://rich-simple-quiz.storage.googleapis.com/simple-quiz.html
- Player title: Simple quiz
- Code repository: https://github.com/arthurtw/simpe-quiz
Description
The simple-quiz
player provides two question types: multiple-choice and fill-in-the-blank. A user may click Answer button to verify answers.
RICH snippet format
> choice={number} start={number}
{Question 1}
- {choice 1}
- {choice 2}
- {choice 3}
- {choice 4}
> answer="{text}" size={number} hint="{text}"
{Question 2}
> ...
{Question 3}
...
...
- start={number} (optional)
- The starting question number (default to 1). This parameter usually appears at the first question, and can be used in a large quiz with multiple sections.
- choice={number}
- The correct choice number for a multiple-choice question.
- answer="{text}"
- The correct answer for a fill-in-the-blank question. {text} can be simple word(s) if there is only one correct answer, or in the form of "(answer1|answer2|...)" if there are multiple correct answers. Answer matching is case-insensitive, and extra words do not affect the correctness. For example, when
answer="cat"
, cat, Cat, a cat and the cat are all correct answers.
- The correct answer for a fill-in-the-blank question. {text} can be simple word(s) if there is only one correct answer, or in the form of "(answer1|answer2|...)" if there are multiple correct answers. Answer matching is case-insensitive, and extra words do not affect the correctness. For example, when
- size={number} (optional)
- The input box size.
- hint="{text}" (optional)
- The input box hint text (placeholder).
- {Question n}
- The question text. Simple HTML tags without attributes are allowed. For example,
<b>...</b>
can be used to bold text,<u>...</u>
to underline text, and<sup>...</sup>
for superscripttext.
- The question text. Simple HTML tags without attributes are allowed. For example,
Example
> choice=2
Which planet is bigger than the others?
- Mars
- Earth
- Venus
> answer="(Alpha Centauri|α Cen)"
What is the closest star system to our Solar System?
If there is only one question, the question number won’t be shown. For example:
> answer="Alpha Centauri"
What is the closest star system to our Solar System?