# How to Use Branching in Quizzes

Explore different scenarios for using [branching](https://help.parta.io/editor/edit-elements/set-media-and-content-elements/button#branching) in quizzes depending on your needs.

{% embed url="<https://youtu.be/UCViNlmkW7k?si=dK1YPgSCrpJRqlIY>" %}

## Use Case 1. Quiz Section with Incorrect Answer Lock

The author is building a Quiz section and doesn't want to allow learners to proceed until they answer correctly, while maintaining free navigation within the section.&#x20;

{% hint style="info" %}
Recommended for use with a [closed side navigation menu](https://help.parta.io/faq/how-to-restrict-course-navigation-for-students).
{% endhint %}

Depending on the answer, configure the branching:

* **Correct answer →** The learners skip one or more sections or proceed to the next section;
* **Incorrect answer →** The learners retake a Quiz until they pass.

Flow example:

<figure><img src="https://3560131808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoKhlOpFC8JmF8TcxylWx%2Fuploads%2FUQGcDZ8RwpKIhEHo1moc%2FHow_to_use_branching_in_quizzes.01.png?alt=media&#x26;token=4505b1d0-8367-4e4c-a277-4b1311e56149" alt=""><figcaption></figcaption></figure>

{% stepper %}
{% step %}
[Create](https://help.parta.io/project/set-a-project-structure/create-a-course-outline) a **Quiz** section.
{% endstep %}

{% step %}
[Set a Quiz](https://help.parta.io/project/set-sections/set-a-quiz) and go to the [Results block](https://help.parta.io/editor/edit-elements/set-quiz-elements/results-quiz-block-elements) at the end of a section.
{% endstep %}

{% step %}
Select a Quiz button and open the button settings window.

A pop-up window will appear.
{% endstep %}

{% step %}
Select a **Branching** option from a drop-down menu.
{% endstep %}

{% step %}
Set a name for a button.
{% endstep %}

{% step %}
Set a correct answer option:

* **Type**: Select a **Course navigation** option from a drop-down menu;
* **Actions**: Select a **Go to** option from a drop-down menu;
* **Section**: Select a section to redirect a learner;
* **Block** (optional): Select a block to redirect a learner;
* **Label**: Set a name for a button.
  {% endstep %}

{% step %}
Set an incorrect answer option:

**Type**: Select an **Action in block** option from a drop-down menu;

**Action**: Select a **Try again** option from a drop-down menu;

**Label**: Set a name for a button.
{% endstep %}
{% endstepper %}

## Use Case 2. Learning loop: Retaking a Quiz and Managing Attempts

The learners return to a Quiz they have already completed (for example, as part of a learning loop), where if they answer incorrectly, they are sent back to the beginning of the learning block, retake it, and then return to the Quiz.

Depending on the answer, configure the branching:

* **Correct answer (first time) →** The learners move on;
* **Correct answer (repeat) →** The learners take the quiz again if they wish to return;
* **Incorrect answer →** The learners return to the initial section, complete it, and retake the Quiz.

{% hint style="success" %}
Retry attempts management:

* If you want to allow retakes even after a correct answer, set **Restrict attempts: blank (unlimited) or a specific number** at the [Quiz section settings](https://help.parta.io/project/set-sections/set-a-quiz/manage-a-quiz).
* If you want to block repeated answers after a correct answer (the learners have completed the Quiz and returned, the button is disabled), set **Repeat: No** at the [block settings](https://help.parta.io/editor/edit-blocks/manage-a-block). If the answer is correct, the button is hidden, and the learners cannot answer again.
  {% endhint %}

Flow example:

<figure><img src="https://3560131808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoKhlOpFC8JmF8TcxylWx%2Fuploads%2Fv05IFX54ogTlt6crbHaf%2FHow_to_use_branching_in_quizzes.02.png?alt=media&#x26;token=55fce90c-8ad8-4ead-ad65-53220e32f0ac" alt=""><figcaption></figcaption></figure>

{% stepper %}
{% step %}
[Create](https://help.parta.io/project/set-a-project-structure/create-a-course-outline) a **Content page** section.
{% endstep %}

{% step %}
[Add](https://help.parta.io/editor/edit-blocks/add-a-block) and set a [Quiz block](https://help.parta.io/editor/edit-elements/set-quiz-elements/quiz-block-elements) in the middle or at the end of a section.
{% endstep %}

{% step %}
Select a Quiz button and open the button settings window.

A pop-up window will appear.
{% endstep %}

{% step %}
Select a **Branching** option from a drop-down menu.
{% endstep %}

{% step %}
Set a name for a button.
{% endstep %}

{% step %}
Set a correct answer option:

* **Type**: Select an **Action in block** option from a drop-down menu;
* **Action**: Select an **Accept answer** option from a drop-down menu;
* **Label**: Set a name for a button.
  {% endstep %}

{% step %}
Set an incorrect answer option:

* **Type**: Select a **Course navigation** option from a drop-down menu;
* **Actions**: Select a **Go to** option from a drop-down menu;
* **Section**: Select an initial section to redirect a learner;
* **Block** (optional) Select a block to redirect a learner;
* **Label**: Set a name for a button.
  {% endstep %}
  {% endstepper %}

## Use Case 3. Diagnostic Quiz at the Beginning of a Course / Skipping Sections

The course author creates a separate section at the beginning of the course—an introductory question or a short quiz—to assess the learners knowledge before the course begins.&#x20;

Depending on the answer, configure the branching:

* **Correct answer →** The learners go forward, skipping familiar sections;
* **Incorrect answer →** The learners proceed sequentially from the first section.

{% hint style="success" %}
Progress management:

**Mark a block as optional** at the [block settings](https://help.parta.io/editor/edit-blocks/manage-a-block) for progress to let learners skip it without detracting from their progress in the course.&#x20;

Only required blocks are counted when calculating overall progress.&#x20;
{% endhint %}

Flow example:

<figure><img src="https://3560131808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoKhlOpFC8JmF8TcxylWx%2Fuploads%2Ftu0XNPQUt2McjhUaf5kA%2FHow_to_use_branching_in_quizzes.03.png?alt=media&#x26;token=85bb9b74-37ee-47e4-9ba6-d80a143a7226" alt=""><figcaption></figcaption></figure>

{% stepper %}
{% step %}
[Create](https://help.parta.io/project/set-a-project-structure/create-a-course-outline) a **Content page** section at the beginning of a course.
{% endstep %}

{% step %}
[Add](https://help.parta.io/editor/edit-blocks/add-a-block) and set a [Quiz block](https://help.parta.io/editor/edit-elements/set-quiz-elements/quiz-block-elements).
{% endstep %}

{% step %}
Select a Quiz button and open the button settings window.

A pop-up window will appear.
{% endstep %}

{% step %}
Select a **Branching** option from a drop-down menu.
{% endstep %}

{% step %}
Set a name for a button.
{% endstep %}

{% step %}
Set a correct answer option:

* **Type**: Select a **Course navigation** option from a drop-down menu;
* **Actions**: Select a **Go to** option from a drop-down menu;
* **Section**: Select a section to redirect a learner;
* **Block** (optional) Select a block to redirect a learner;
* **Label**: Set a name for a button.
  {% endstep %}

{% step %}
Set an incorrect answer option:

* **Type**: Select a **Course navigation** option from a drop-down menu;
* **Action**: Select a **Next section** option from a drop-down menu;
* **Label**: Set a name for a button.
  {% endstep %}
  {% endstepper %}

## Use Case 4. Contextual question within a section with a branched result

The question is placed within the section (for example, as the last block) to assess the learners knowledge before the course continues. Advanced learners get a shorter path through the course, while those struggling get additional support.&#x20;

Depending on the answer, configure the branching:

* **Correct answer →** The learners skip one or more sections;
* **Incorrect answer →** The learners download additional material or proceed to the next section.

Flow example:

<figure><img src="https://3560131808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoKhlOpFC8JmF8TcxylWx%2Fuploads%2Ftu0XNPQUt2McjhUaf5kA%2FHow_to_use_branching_in_quizzes.03.png?alt=media&#x26;token=85bb9b74-37ee-47e4-9ba6-d80a143a7226" alt=""><figcaption></figcaption></figure>

{% stepper %}
{% step %}
[Create](https://help.parta.io/project/set-a-project-structure/create-a-course-outline) a **Content page** section at any checkpoint of a course.
{% endstep %}

{% step %}
[Add](https://help.parta.io/editor/edit-blocks/add-a-block) and set a [Quiz block](https://help.parta.io/editor/edit-elements/set-quiz-elements/quiz-block-elements) at the end of a section.
{% endstep %}

{% step %}
Select a Quiz button and open the button settings window.

A pop-up window will appear.
{% endstep %}

{% step %}
Select a **Branching** option from a drop-down menu.
{% endstep %}

{% step %}
Set a name for a button.
{% endstep %}

{% step %}
Set a correct answer option:

* **Type**: Select a **Course navigation** option from a drop-down menu;
* **Actions**: Select a **Go to** option from a drop-down menu;
* **Section**: Select a section to redirect a learner;
* **Block** (optional) Select a block to redirect a learner;
* **Label**: Set a name for a button.
  {% endstep %}

{% step %}
Set an incorrect answer option:

**Type**: Select a **Course navigation** option from a drop-down menu;

**Action**: Select a **Next section** option from a drop-down menu;

**Label**: Set a name for a button.
{% endstep %}
{% endstepper %}

<br>
