Skip to content

Commit 7d513d2

Browse files
committed
docs: add support for true-false question type
Signed-off-by: Nouran Atef <[email protected]>
1 parent 3e7227b commit 7d513d2

File tree

1 file changed

+13
-5
lines changed
  • content/en/cloud/academy/creating-content/integrating-assessments-in-the-academy

1 file changed

+13
-5
lines changed

content/en/cloud/academy/creating-content/integrating-assessments-in-the-academy/index.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ questions:
144144
| | `questions` || An array containing one or more question objects. |
145145
| **Question Object** | `id` || Unique identifier for the question within the assessment (e.g., `q1`, `q2`). |
146146
| | `text` || The text of the question prompt. |
147-
| | `type` || The type of question. Accepted values are `single-answer`, `multiple-answers` or `short-answer`. |
147+
| | `type` || The type of question. Accepted values are `single-answer`, `multiple-answers`, `short-answer`, or `true-false`. |
148148
| | `marks` || The number of points awarded for a correct answer. |
149149
| | `instructions` | - | Custom instruction for each question |
150150
| | `options` | - | An array of answer options. |
@@ -155,7 +155,7 @@ Remember: `type: "test"` are fixed values that cannot be modified. The system ne
155155

156156
## Supported Assessment Types
157157

158-
Layer5 Academy supports three question formats:
158+
Layer5 Academy supports four question formats:
159159

160160
***Single Choice Questions***
161161
- Single correct answer
@@ -177,11 +177,18 @@ Layer5 Academy supports three question formats:
177177
is_correct: true # correct option
178178
- id: "b"
179179
text: "Option B"
180+
---
181+
</code></pre>
182+
</details>
180183

181-
# True/False:
184+
<details style="margin-bottom: 1em;">
185+
<summary>Examples: <code>type: true-false</code> </summary>
186+
187+
---
188+
questions:
182189
- id: "question2"
183-
text: "This is a true/false question"
184-
type: "single-answer" # choose the type
190+
text: "Kubernetes Pods can contain multiple containers."
191+
type: "true-false" # choose the type
185192
marks: 1
186193
options:
187194
- id: "true"
@@ -295,6 +302,7 @@ Instructions are defaultly defined for each question type :
295302
- single-answer: Select one answer
296303
- multiple-answers: Select all that apply
297304
- short-answer: Type your answer below
305+
- true-false: Select True or False
298306

299307

300308
Instructions can be override in frontmatter by defining a custom intruction for each question.

0 commit comments

Comments
 (0)