You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/cloud/academy/creating-content/building-certifications/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,12 +135,12 @@ For detailed instructions on how to write an exam file, define various question
135
135
136
136
A **test** can include more questions than those presented to users in a single attempt, effectively turning it into a **test bank** — collection of all possible questions available for that test. When users retry the test, a new set of questions is drawn from the test bank for each attempt.
137
137
138
-
This behavior is controlled by the `number_of_questions` property in the front matter.
138
+
This behavior is controlled by the `numberOfQuestions` property in the front matter.
139
139
140
-
* If `number_of_questions` is **not defined**, all questions in the test are used in every attempt.
140
+
* If `numberOfQuestions` is **not defined**, all questions in the test are used in every attempt.
141
141
* If it **is defined**, the test is automatically divided into multiple sets, each containing the specified number of questions.
142
142
143
-
To ensure even division, the **total number of questions** must be a **multiple** of `number_of_questions`.
143
+
To ensure even division, the **total number of questions** must be a **multiple** of `numberOfQuestions`.
144
144
145
145
By default, the **number of retries** is set to the number of generated sets. However, you can increase it, in which case the question sets will **cycle** through repeatedly across attempts.
Remember: `type: "test"` are fixed values that cannot be modified. The system needs these exact words to work properly.
@@ -174,7 +175,7 @@ Layer5 Academy supports four question formats:
174
175
options:
175
176
- id: "a"
176
177
text: "Option A"
177
-
is_correct: true # correct option
178
+
isCorrect: true # correct option
178
179
- id: "b"
179
180
text: "Option B"
180
181
---
@@ -193,7 +194,7 @@ Layer5 Academy supports four question formats:
193
194
options:
194
195
- id: "true"
195
196
text: "True"
196
-
is_correct: true # correct option
197
+
isCorrect: true # correct option
197
198
- id: "false"
198
199
text: "False"
199
200
---
@@ -217,12 +218,12 @@ Layer5 Academy supports four question formats:
217
218
options:
218
219
- id: "a"
219
220
text: "Option A"
220
-
is_correct: true # correct option
221
+
isCorrect: true # correct option
221
222
- id: "b"
222
223
text: "Option B"
223
224
- id: "c"
224
225
text: "Option C"
225
-
is_correct: true # correct option
226
+
isCorrect: true # correct option
226
227
---
227
228
</code></pre>
228
229
</details>
@@ -244,13 +245,13 @@ Layer5 Academy supports four question formats:
244
245
type: "short-answer" # choose the type
245
246
marks: 2
246
247
instructions: "Just type the command"
247
-
correct_answer: "default" # expected answer
248
+
correctAnswer: "default" # expected answer
248
249
249
250
- id: "question5"
250
251
text: "Which kubectl command lists all pods?"
251
252
type: "short-answer" # choose the type
252
253
marks: 2
253
-
correct_answer: "kubectl get pods" # expected answer
254
+
correctAnswer: "kubectl get pods" # expected answer
254
255
---
255
256
</code></pre>
256
257
</details>
@@ -317,7 +318,7 @@ Instructions can be override in frontmatter by defining a custom intruction for
317
318
type: "short-answer"
318
319
marks: 2
319
320
instructions: "Just type the command"#custom instruction
320
-
correct_answer: "default"
321
+
correctAnswer: "default"
321
322
322
323
questions: # will display the default instructions for question type
323
324
- id: "question3"
@@ -327,31 +328,31 @@ Instructions can be override in frontmatter by defining a custom intruction for
327
328
options:
328
329
- id: "a"
329
330
text: "Option A"
330
-
is_correct: true # correct option
331
+
isCorrect: true # correct option
331
332
- id: "b"
332
333
text: "Option B"
333
334
- id: "c"
334
335
text: "Option C"
335
-
is_correct: true # correct option
336
+
isCorrect: true # correct option
336
337
---
337
338
</code></pre>
338
339
</details>
339
340
340
341
341
342
## Scoring
342
343
343
-
The scoring process is handled automatically by the backend system. As a content creator, your main responsibility is to define the `marks` for each question and the overall `pass_percentage` for the assessment. Here is how the system processes the scores:
344
+
The scoring process is handled automatically by the backend system. As a content creator, your main responsibility is to define the `marks` for each question and the overall `passPercentage` for the assessment. Here is how the system processes the scores:
344
345
345
346
### How Scores Are Calculated
346
347
347
348
1. **Total Possible Marks**: The total score for a assessment is automatically calculated by summing the `marks` value of every question within that assessment. You do not need to define this total manually.
348
349
2. **Learner's Score**: A learner's final score is the sum of the `marks` from all the questions they answered correctly.
349
-
3. **Pass/Fail Status**: The system calculates the final percentage using the formula `(Learner's Score / Total Possible Marks) * 100`. If this percentage is greater than or equal to the `pass_percentage` you set, the assessment is marked as "Passed".
350
+
3. **Pass/Fail Status**: The system calculates the final percentage using the formula `(Learner's Score / Total Possible Marks) * 100`. If this percentage is greater than or equal to the `passPercentage` you set, the assessment is marked as "Passed".
350
351
351
352
### Scoring Rules for Question Types
352
353
353
354
- **Multiple-Choice Questions**: For questions with a single correct answer, the logic is straightforward. For **multiple-answer questions**, the scoring is strict: the learner must select **all** correct options and **none** of the incorrect options to earn the marks. There is no partial credit.
354
-
- **Short Answer Questions**: The learner's input is compared against the `correct_answer` field. The comparison is **case-insensitive**, and leading/trailing whitespace is ignored to avoid penalizing minor typing variations.
355
+
- **Short Answer Questions**: The learner's input is compared against the `correctAnswer` field. The comparison is **case-insensitive**, and leading/trailing whitespace is ignored to avoid penalizing minor typing variations.
0 commit comments