Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UG -> Add mcq question with multiple correct answers #2591

Merged
merged 3 commits into from
Feb 12, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion docs/userGuide/syntax/questions.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Optionally, you can provide the reason for the particular option using the `<q-o
{% set mcqQuestion %}
<question type="mcq" header="Which of these **contradicts** the heuristics recommended when creating test cases with multiple inputs?">
<!-- Insert the reason for the option using the reason attribute -->
<q-option reason="This is **correct**. We need to figure out if a positive test case works!">
<q-option reason="This option **does not contradict the heuristics recommended**. We need to figure out if a positive test case works!">
Each valid test input should appear at least once in a test case that doesn’t have any invalid inputs.
</q-option>
<q-option>
Expand Down Expand Up @@ -185,6 +185,32 @@ Optionally, you can provide the reason for the particular option using the `<q-o

<box type="tip" seamless>MCQ questions can have multiple correct options!</box>

{% set mcqQuestionWithMultipleAnswers %}
<question type="mcq" header="Which of these is an example of gathering requirements for a product?">
<!-- Insert the reason for the option using the reason attribute -->
<q-option reason="Studying existing products can unearth shortcomings of existing solutions that can be addressed by a new product" correct>
Product surveys
</q-option>
<q-option reason="Observing users in their natural work environment is a way to uncover product requirements" correct>
Observation
</q-option>
<q-option reason="Assuming user needs directly opposes the idea of identifying the needs the product is made to solve">
User assumptions
</q-option>
<q-option reason="Focus groups can help to understand a specific issue, process, product, advertisement, etc." correct>
Focus groups
</q-option>
<div slot="hint">
There is more than one correct answer!
tlylt marked this conversation as resolved.
Show resolved Hide resolved
</div>
</question>
{% endset %}

<include src="codeAndOutput.md" boilerplate >
<variable name="highlightStyle">html</variable>
<variable name="code">{{ mcqQuestionWithMultipleAnswers }}</variable>
</include>

**Checkbox Questions**

{% set checkboxQuestion %}
Expand Down