Skip to content

Commit 919bbfc

Browse files
committed
update examples
1 parent fd53379 commit 919bbfc

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

modules/module5/module5-02-quick_questions_with_conditionals.qmd

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@ reps
228228
generateQuiz(
229229
'mcq5',
230230
'Question',
231-
'What is the output of the code above?',
231+
'What is the output if <code>exercise = "exercise"</code>?',
232232
{
233-
'<code>20</code>': 'This is the value if <code>exercise</code> is <code>lunges</code>.',
234-
'<code>25</code>': 'This is the value if <code>exercise</code> is <code>squats</code>.',
235-
'<code>15</code>': '',
236-
'<code>10</code>': 'This is the default for all other values of <code>exercise</code> that are not <code>lunges</code>, <code>squats</code> or <code>burpees</code>.',
233+
'<code>20</code>': 'This is the value if <code>exercise</code> is <code>lunges</code>.',
234+
'<code>25</code>': 'This is the value if <code>exercise</code> is <code>squats</code>.',
235+
'<code>15</code>': 'This is the value if <code>exercise</code> is <code>burpees</code>.',
236+
'<code>10</code>': '',
237237
},
238-
'<code>15</code>',
238+
'<code>10</code>',
239239
);
240240
</script>
241241

@@ -308,13 +308,13 @@ tea_amount
308308
generateQuiz(
309309
'mcq6',
310310
'Question',
311-
'What is the output of the code above?',
311+
'What is the output if <code>cups_of_tea = [2]</code>?',
312312
{
313-
'<code>18</code>': 'Did you add an extra element to <code>cups_of_tea</code>?',
314-
'<code>16</code>': '',
313+
'<code>0</code>': 'Are you summing up the list?',
314+
'<code>2</code>': '',
315315
'<code>cannot sum</code>': '<code>cups_of_tea</code> is a list and should be able to sum up the elements.',
316-
'<code>Error</code>': 'The code you made above should not result in an error message.',
316+
'<code>Error</code>': 'It should not result in an error message.',
317317
},
318-
'<code>16</code>',
318+
'<code>2</code>',
319319
);
320320
</script>

0 commit comments

Comments
 (0)