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: modules/module5/module5-02-quick_questions_with_conditionals.qmd
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -228,14 +228,14 @@ reps
228
228
generateQuiz(
229
229
'mcq5',
230
230
'Question',
231
-
'What is the output of the code above?',
231
+
'What is the output if <code>exercise = "exercise"</code>?',
232
232
{
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>':'',
237
237
},
238
-
'<code>15</code>',
238
+
'<code>10</code>',
239
239
);
240
240
</script>
241
241
@@ -308,13 +308,13 @@ tea_amount
308
308
generateQuiz(
309
309
'mcq6',
310
310
'Question',
311
-
'What is the output of the code above?',
311
+
'What is the output if <code>cups_of_tea = [2]</code>?',
312
312
{
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>':'',
315
315
'<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.',
0 commit comments