# Single Choice Set (H5P.SingleChoiceSet)

Quick questions, one after another, each with one right answer of two to four; the learner moves on at the first click.

- In each item of `choices`, the first of `answers` is the right one; the set shuffles them when shown.
- Keep answers short: they are buttons.

## Example

```json
{
  "type": "H5P.SingleChoiceSet",
  "params": {
    "choices": [
      { "question": "Which sea does the Danube reach?", "answers": ["Black Sea", "North Sea", "Baltic Sea"] },
      { "question": "Which river flows through Paris?", "answers": ["Seine", "Loire", "Rhône"] }
    ]
  }
}
```

<!-- Generated by `h5p-author schema --markdown` from the pinned pack. Do not edit by hand. -->

## Fields of H5P.SingleChoiceSet 1.11

The example is `type` and `params` alone, and `params` holds the fields below. A source also names its own `title`, `language`, `license` and `authors`, all four required: the build refuses a source that leaves out any of them. The author's name and the licence are the user's: ask for what they have not given. For a name they skip, write the one you know them by, or "Unknown"; for a licence they skip, `U`.

- `choices` list 1+ of, required — List of questions
  - `question` html: strong em code, required — Question
  - `answers` list 2–4 of html: strong em code, required — Alternatives - first alternative is the correct one.
- `overallFeedback` list 1+ of — Overall Feedback: Click the "Add range" button to add as many ranges as you need. Example: 0-20% Bad score, 21-91% Average Score, 91-100% Great Score!
  - `from` whole number 0–100 = 0 — Score Range
  - `to` whole number 0–100 = 100
  - `feedback` text — Feedback for defined score range
- `behaviour` group — Behavioural settings
  - `autoContinue` boolean = true — Auto continue
  - `timeoutCorrect` number = 2000; only when autoContinue is true — Timeout on correct answers: Value in milliseconds
  - `timeoutWrong` number = 3000; only when autoContinue is true — Timeout on wrong answers: Value in milliseconds
  - `soundEffectsEnabled` boolean = true — Enable sound effects
  - `enableRetry` boolean = true — Enable retry button
  - `enableSolutionsButton` boolean = true — Enable show solution button
  - `passPercentage` whole number 0–100 = 100 — Pass percentage: Percentage of Total score required for passing the quiz.

21 interface texts are left out: they come from the libraries' translations. `h5p-author schema H5P.SingleChoiceSet --all` lists them, for a source to set one.

<!-- End of the generated section. -->
