forked from hedyorg/hedy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhi.yaml
4197 lines (4196 loc) · 176 KB
/
hi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
levels:
1:
1:
question_text: इस प्रोग्रामिंग भाषा को क्या कहा जाता है?
mp_choice_options:
- option: Hedy
feedback: बहुत बढ़िया!
- option: Heddy
feedback: ये वाला नहीं!
- option: Haydie
feedback: ये वाला नहीं!
- option: Heidi
feedback: ये वाला नहीं!
hint: इसका नाम हेडी लैमर के नाम पर रखा गया है।
correct_answer: A
question_score: '10'
2:
question_text: हैलो! टेक्स्ट प्रदर्शित करने के लिए रिक्त स्थान पर किसे भरना आवश्यक है?
code: ___ Hello!
mp_choice_options:
- option: |-
```
{echo}
```
feedback: '`{echo}` repeats a given answer.'
- option: |-
```
{print}
```
feedback: Correct!
- option: |-
```
hello
```
feedback: Hello isn't a command.
- option: |-
```
{ask}
```
feedback: With `{ask}`, you can ask a question.
hint: _?_ Hello world!
correct_answer: B
question_score: '10'
3:
question_text: How do you ask what someone's favorite color is?
mp_choice_options:
- option: |-
```
{print} What is your favorite color?
```
feedback: '`{print}` prints text, but it doesn''t ask questions.'
- option: |-
```
{ask} {print} What is your favorite color?
```
feedback: You only need one command, not two.
- option: |-
```
{ask} What is your favorite color?
```
feedback: Great!
- option: |-
```
{echo} What is your favorite color?
```
feedback: '`{echo}` repeats your answer back to you.'
hint: You can {ask} something with the {ask} command
correct_answer: C
question_score: '10'
4:
question_text: What is wrong with this code?
code: |-
Hi Im Hedy!
{ask} Who are you?
{echo} Hi...
mp_choice_options:
- option: '`{print}` in line 1 is missing.'
feedback: Correct!
- option: Im in line 1 is spelled wrong.
feedback: Im is spelled wrong on purpose; Hedy doesn't understand the apostrophes yet.
- option: '`{echo}` isn''t a command.'
feedback: '`{echo}` is a command, there''s another mistake.'
- option: Nothing! This is a perfect code!
feedback: Wrong, look carefully!
hint: Line 1 doesn't seem right
correct_answer: A
question_score: '10'
5:
question_text: Which command is missing in line 2?
code: |-
{ask} What is your favorite pet?
_?_ So your favorite pet is...
mp_choice_options:
- option: |-
```
{print}
```
feedback: No, you would like the answer to be repeated back to you.
- option: |-
```
Hedy
```
feedback: Hedy isn't a command.
- option: |-
```
{ask}
```
feedback: With `{ask}` you can ask a question.
- option: |-
```
{echo}
```
feedback: Right on!
hint: You want to see the answer at the end of line 2...
correct_answer: D
question_score: '10'
6:
question_text: What's wrong with this code?
code: |-
{print} Hi im Hedy!
{print} Which football team do you support?
{echo} You support...
{print} Cool! Me too!
mp_choice_options:
- option: In line 1 `{print}` should be replaced with `{ask}`.
feedback: '`{print}` in line 1 is correct.'
- option: In line 2, `{print}` should be replaced with `{ask}`.
feedback: Great! You paid attention!
- option: Line 3 has to begin with `{print}` instead of `{echo}`.
feedback: '`{echo}` is correct.'
- option: In line 4, `{print}` is spelled wrong.
feedback: No, there is a mistake somewhere else
hint: Check the `{print}` commands.
correct_answer: B
question_score: '10'
7:
question_text: What's wrong with this code?
code: |-
{print} Welcome at Hedys restaurant!
{ask} What would you like to eat?
{echo} So you want to order ...
{print} Coming right up! Enjoy!
mp_choice_options:
- option: In line 1 `{print}` needs to be replaced with `{ask}`
feedback: Are you sure something is wrong?
- option: In line 1 `{print}` needs to be replaced with `{echo}`
feedback: Are you sure something's wrong?
- option: In line 3 `{echo}` needs to be replaced with `{print}`
feedback: Are you sure something is wrong?
- option: Nothing! This is a perfect code!
feedback: Correct!
hint: Check the code line by line
correct_answer: D
question_score: '10'
8:
question_text: How do you use the `{echo}` command?
mp_choice_options:
- option: You can use it to `{ask}` a question.
feedback: That's what `{ask}` is for!
- option: You can use it to `{print}` text.
feedback: That's what `{print}` is for!
- option: You can use it to repeat an answer.
feedback: Good job!
- option: You can use it to make text disappear.
feedback: That's not right...
hint: '`{echo}` is used after an `{ask}` command.'
correct_answer: C
question_score: '10'
9:
question_text: What's wrong with this code?
code: |-
{print} Hello!
{print} How are you doing?
{echo} So you are doing...
mp_choice_options:
- option: '`{print}` in line 1 should be `{ask}`'
feedback: No, `{print}` is right. Where is the question being asked?
- option: '`{print}` in line 2 should be `{ask}`'
feedback: Super!
- option: '`{echo}` in line 3 should be `{ask}`'
feedback: No, `{echo}` is right. Where is the question being asked?
- option: Nothing. This is a perfect code!
feedback: Look carefully for the mistake...
hint: '`{ask}` allows you to ask a question'
correct_answer: B
question_score: '10'
10:
question_text: Which output will be in your outputscreen after you've run this code?
code: |-
{ask} Are you ready to go to level 2?
{echo}
{echo}
mp_choice_options:
- option: Are you ready to go to level 2?
feedback: There are two echo commands
- option: |-
Yes!
Yes!
feedback: Great job!
- option: Yes!
feedback: There are two echo commands
- option: |-
Are you ready to go to level 2?
Yes!
feedback: There are two echo commands
hint: Let's go!
correct_answer: B
question_score: '10'
2:
1:
question_text: Which statement is true?
mp_choice_options:
- option: In level 2 the `{print}` command doesn't exist anymore
feedback: '`{print}` still works'
- option: In level 2 the `{ask}` command doesn't exist anymore
feedback: '`{ask}` still works!'
- option: In level 2 the `{echo}` command doesn't exist anymore
feedback: Good
- option: In level 2 all the level 1 commands still work
feedback: No one command doesn't work anymore.
hint: '`{print}` and `{ask}` still exist.'
correct_answer: C
question_score: '10'
2:
question_text: Which code is correct?
mp_choice_options:
- option: |-
```
name {is} {ask} What is your name?
```
feedback: Super!
- option: |-
```
{ask} {is} name What is your name
```
feedback: The words are right, the order is not!
- option: |-
```
{ask} What is your name?
```
feedback: This worked in level 1, but in level 2 and up it works differently.
- option: |-
```
{ask} What is your name? {is} name
```
feedback: The words are right, the order isn't!
hint: '`{ask}` doesn''t work like in level 1'
correct_answer: A
question_score: '10'
3:
question_text: What appears on your output screen when you run this code?
code: |-
name {is} Marleen
{print} name goes to the market and she buys an apple.
mp_choice_options:
- option: name goes to the market and she buys an apple.
feedback: The word name is replaced with Marleen
- option: Marleen goes to the market.
feedback: The second part of the sentence isn't left out!
- option: Marleen goes to the market and she buys an apple.
feedback: Right on!
- option: Marleen goes to the market and Marleen buys an apple.
feedback: She is not replaced with the name
hint: The word name is replaced with Marleen
correct_answer: C
question_score: '10'
4:
question_text: What will you see on the output screen when you run this code?
code: |-
name {is} Hedy
{print} Hi my name is name
mp_choice_options:
- option: Hi my name is name
feedback: The variable name is replaced with Hedy
- option: Hi my name is Hedy
feedback: The variable name is replaced with Hedy
- option: Hi my Hedy is name
feedback: The variable name is replaced with Hedy
- option: Hi my Hedy is Hedy
feedback: Correct, this mistake will be fixed in level 4!
hint: '''name'' is being replaced with ''Hedy'' in both places'
correct_answer: D
question_score: '10'
5:
question_text: What happens when you use the `{sleep}` command?
mp_choice_options:
- option: It slows down your computer
feedback: fortunately not!
- option: It closes down Hedy
feedback: fortunately not!
- option: Your program pauses for a second and then continues
feedback: That's right!
- option: You put it at the end so Hedy knows your program is finished
feedback: No it would be useless at the end of your code
hint: The computer waits for a second at the `{sleep}` command
correct_answer: C
question_score: '10'
6:
question_text: What should be on the lines?
code: |-
{print} And the award for best programming language goes to...
_?_
{print} Hedy!
mp_choice_options:
- option: |-
```
{sleep}
```
feedback: Perfect!
- option: |-
```
{echo}
```
feedback: There is nothing to repeat back here
- option: |-
```
{print}
```
feedback: There is no text there to `{print}` there
- option: |-
```
{ask}
```
feedback: There is no question there to be asked
hint: Pause for dramatic effect...
correct_answer: A
question_score: '10'
7:
question_text: What command should be used on line 2?
code: |-
{print} I will explode in 3 seconds!
_?_
{print} BOOM!
mp_choice_options:
- option: |-
```
{print} 3
```
feedback: You don't need to `{print}`
- option: |-
```
{sleep} 3
```
feedback: Perfect!
- option: |-
```
{sleep}
```
feedback: This way the bomb will explode in 1 second
- option: |-
```
{sleep} {sleep} {sleep}
```
feedback: Make it easier on yourself by using the number 3
hint: You want the computer to wait for 3 seconds
correct_answer: B
question_score: '10'
8:
question_text: How would you correct the first line of code?
code: |-
{ask} {is} How old are you?
{print} age
mp_choice_options:
- option: |-
```
age {ask} {is} How old are you?
```
feedback: That is the wrong order
- option: |-
```
{ask} {is} age How old are you?
```
feedback: That is the wrong order
- option: |-
```
age {is} {ask} How old are you?
```
feedback: You get it!
- option: |-
```
age {is} How old are you?
```
feedback: Where is the `{ask}` command?
hint: The variable name should come first
correct_answer: C
question_score: '10'
9:
question_text: What is going wrong in this code?
code: |-
dogs {is} animal
{print} I love animal
mp_choice_options:
- option: 'Line 1 should say: dogs `{is}` animals'
feedback: The variable name is animal
- option: 'Line 1 should say: animal `{is}` dogs'
feedback: Great!
- option: 'Line 2 should say: `{print}` I love animals'
feedback: The variable name is animal
- option: 'Line 2 should say: `{sleep}` I love animals'
feedback: Sleep is not used to `{print}` text
hint: You want to `{print}` 'I love dogs'
correct_answer: B
question_score: '10'
10:
question_text: What command should be used on the line 1?
code: |-
flavor {is} _?_
{print} Your favorite icecream is...
{sleep}
{print} flavor
mp_choice_options:
- option: |-
```
{sleep} 3
```
feedback: You want to know the favorite flavor!
- option: |-
```
{print} strawberries
```
feedback: You do not want a `{print}` command at the middle of the line...
- option: |-
```
strawberries, chocolate, vanilla
```
feedback: This way you are making a list. You don't want that now.
- option: |-
```
{ask} What flavor icecream do you like?
```
feedback: That's right!
hint: You want to `{ask}` a question
correct_answer: D
question_score: '10'
3:
1:
question_text: What command do you use to let Hedy pick something arbitrarily?
mp_choice_options:
- option: |-
```
{print}
```
feedback: '`{print}` is used to print text'
- option: |-
```
{ask}
```
feedback: '`{ask}` is used to ask a question'
- option: |-
```
{is}
```
feedback: '`{is}` is used to make a list'
- option: |-
```
{at} {random}
```
feedback: Correct!
hint: Arbitrarily means without a plan or randomly.
correct_answer: D
question_score: '10'
2:
question_text: What's wrong with this code?
code: |-
animals {is} dog cat cow
{print} animals {at} {random}
mp_choice_options:
- option: 'You need commas in line 1: dog, cat, cow.'
feedback: Good job!
- option: Line 1 needs to start with `{print}`.
feedback: No, you don't need `{print}`
- option: Line 2 needs to say 'animal' instead of 'animals'',
feedback: animals is correct.
- option: '`{at} {random}` is spelled incorrectly'
feedback: '`{at} {random}` is the correct spelling'
hint: There's something wrong in line 1
correct_answer: A
question_score: '10'
3:
question_text: How do you fix the mistake in line 2 of this code?
code: |-
options {is} rock, paper, scissors
{print} rock, paper, scissors {at} {random}
mp_choice_options:
- option: |-
```
{at} {random} {print} options
```
feedback: You're almost there. The order of the words isn't right yet.
- option: |-
```
{print} rock {at} {random}
```
feedback: you don't always want the Hedy to {print} rock, sometimes you want scissors or paper.
- option: |-
```
{print} options {at} {random}
```
feedback: Very good!
- option: Nothing, the code is correct!
feedback: Look carefully for the mistake
hint: The variable (the list) is called options.
correct_answer: C
question_score: '10'
4:
question_text: What should change in line 2 to print a random price?
code: |-
prices {is} 1 dollar, 100 dollar, 1 million dollar
{print} price {at} {random}
mp_choice_options:
- option: |-
```
{print} price
```
feedback: You don't want to `{print}` the word price, but you want to `{print}` one price out of your list `{at} {random}`
- option: |-
```
{print} prices {at} {random}
```
feedback: Great! You've really paid attention.
- option: |-
```
{print} {at} {random} price
```
feedback: '`{at} {random}` is placed behind the variable.'
- option: Nothing, this code is alright.
feedback: Look carefully for the mistake you missed!
hint: The variable name is prices
correct_answer: B
question_score: '10'
5:
question_text: What is wrong in this code?
code: |-
question {is} {ask} What do you want to know?
{print} question
answers {is} yes, no, maybe
{print} answers {at} {random}
mp_choice_options:
- option: Line 1 needs to say `{print}` instead of `{ask}`
feedback: No, that's not wrong.
- option: Line 2 needs to say `{ask}` instead of `{print}`
feedback: No that's not wrong.
- option: Line 2 needs to say answers `{at} {random}` `{is}` yes, no, maybe
feedback: No, that's not wrong.
- option: Nothing, this code is perfect
feedback: That's right!
hint: Does this code even have a mistake?
correct_answer: D
question_score: '10'
6:
question_text: What's wrong with this code?
code: |-
question {is} {ask} What do you want to know?
answers yes, no, maybe
{print} answers {at} {random}
mp_choice_options:
- option: Line 2 needs to say question instead of answers
feedback: No that's not right
- option: Line 2 needs the `{is}` command
feedback: Correct
- option: Line 3 needs to say answer instead of answers
feedback: No the variable's called answers
- option: Nothing! This code is great!
feedback: Actually, line 2 has a mistake.
hint: There is something wrong with line 2.
correct_answer: B
question_score: '10'
7:
question_text: What does the `{add}` command do?
code: |-
books {is} Harry Potter, The Hobbit, Green Eggs and Ham
your_book {is} {ask} What is your favorite book?
{add} your_book {to} books
{print} books {at} {random}
mp_choice_options:
- option: The `{add}` command removes a random book from the list
feedback: The remove command removes, the add command adds
- option: The `{add}` command adds a random book to a list
feedback: It doesn't. It adds your answer to the list!
- option: The `{add}` command adds your favorite book to the list
feedback: Correct!
- option: The `{add}` command prints your favorite book.
feedback: No, it adds your favorite book to the list
hint: The `{add}` command adds a book, but which one?
correct_answer: C
question_score: '10'
8:
question_text: What is the output of this code?
code: |-
crisps {is} sea salt, paprika, sour cream
{remove} sea salt {from} crisps
{remove} paprika {from} crisps
{print} crisps {at} {random}
mp_choice_options:
- option: You can't tell, because Hedy will `{print}` one of the 3 flavors `{at} {random}`
feedback: Take a look at the `{remove}` commands
- option: sea salt
feedback: sea salt is removed from the list
- option: paprika
feedback: Paprika is removed from the list
- option: sour cream
feedback: That's right!
hint: There are 3 flavors, bit 2 are removed. Which one remains?
correct_answer: D
question_score: '10'
9:
question_text: What's wrong with this code?
code: |-
colors {is} blue, purple, green
chosen_color {is} {ask} Which haircolor wouldn't your like to have?
{remove} chosen_color {from} colors
{print} I will dye my hair color {at} {random}
mp_choice_options:
- option: 'Line 3 should say: `{remove}` blue `{from}` colors'
feedback: Maybe you want blue hair though!
- option: Line 3 should have an `{add}` command instead of a `{remove}` command
feedback: You want to remove the chosen color so `{remove}` is right.
- option: In line 4 the variable should be called colors instead of color
feedback: Great job!
- option: Nothing, this is a correct code!
feedback: Find the mistake!
hint: Look at line 3
correct_answer: C
question_score: '10'
10:
question_text: What should be on the _?_?
code: |-
walkers {is} dad, mom, Sam, Petra
walked_yesterday {is} {ask} Who walked the dogs yesterday?
{print} walked_yesterday shouldn't have to walk the dogs again today
_?_
{print} walkers {at} {random} , it's your turn to walk the dogs!
mp_choice_options:
- option: |-
```
{remove} walked_yesterday {from} walkers
```
feedback: Super!
- option: |-
```
{remove} walked yesterday {to} walkers
```
feedback: '`{remove} {from}` or `{add} {to}`, not `{remove} {to}`'
- option: |-
```
{remove} walkers {from} yesterday
```
feedback: yesterday is not a variable
- option: |-
```
{add} walked_yesterday {to} walkers
```
feedback: This increased the change that the person who walked yesterday now has to do it again. That's mean.
hint: The person who walked the dog yesterday should be removed from the list.
correct_answer: A
question_score: '10'
4:
1:
question_text: Which of these is true?
mp_choice_options:
- option: '`{print}` and `{ask}` now need quotation marks'
feedback: That's right
- option: Only `{print}` needs quotation marks
feedback: '`{ask}` needs quotation marks too!'
- option: '`{at} {random}` doesn''t work anymore in level 4'
feedback: '`{at} {random}` still works'
- option: '`{at} {random}` now needs quotation marks'
feedback: No, but 2 other commands do.
hint: In level 4 you need quotation marks for 2 commands.
correct_answer: A
question_score: '10'
2:
question_text: Which code uses the proper quotation marks?
mp_choice_options:
- option: |-
```
{print} `hello`
```
feedback: This quotation mark is skewed, you need a straight one.
- option: |-
```
{print} 'hello'
```
feedback: Correct
- option: |-
```
{print} hello
```
feedback: There are no quotation marks here!.
- option: |-
```
{print} ,hello,
```
feedback: This is a comma, you need quotation marks.
hint: Pick the right quotation marks.
correct_answer: B
question_score: '10'
3:
question_text: Where are the quotation marks used correctly?
mp_choice_options:
- option: |-
```
{print} Hi Im Hedy
```
feedback: Add quotation marks please!
- option: |-
```
{print} 'Hi Im Hedy
```
feedback: Both before and after the words you want to print should be a quotation mark.
- option: |-
```
'{print} Hi Im Hedy'
```
feedback: The first quotation mark should be behind the word {print}
- option: |-
```
{print} 'Hi Im Hedy'
```
feedback: Perfect!
hint: Both before and after the words you want to print should be a quotation mark.
correct_answer: D
question_score: '10'
4:
question_text: Which statement is true?
mp_choice_options:
- option: 'You need quotation marks around the word `{print}`, like this: `''{print}''`.'
feedback: The quotation marks shouldn't be around the command itself.
- option: You need quotation marks around the words you want to print.
feedback: Super!
- option: You do not need quotation marks when using the `{ask}` command
feedback: Both `{print}` and `{ask}` require quotation marks
- option: You can choose yourself whether to use quotation marks or not.
feedback: Unfortunately, Hedy is stricter than that.
hint: From level 4 on you need to use quotation marks.
correct_answer: B
question_score: '10'
5:
question_text: What has to be changed in order for the game to work?
code: |-
options {is} rock, paper, scissors
{print} 'options {at} {random}'
mp_choice_options:
- option: |-
```
'{print} options {at} {random}'
```
feedback: Never put the quotation mark in front of the {print} command.
- option: |-
```
{print} 'options' {at} {random}
```
feedback: options is a variable. You don't literally want to print 'options {at} {random}'.
- option: |-
```
{print} options {at} {random}
```
feedback: That's right
- option: Nothing, the game already works!
feedback: Look carefully. There is an error.
hint: You don't want Hedy to literally print 'options {at} {random}', you want it to print 'rock' or 'paper' or 'scissors'.
correct_answer: C
question_score: '10'
6:
question_text: What would be a good next line in this code?
code: prices {is} 1 dollar, 100 dollars, 1 million dollars
mp_choice_options:
- option: |-
```
{print} 'You win...' prices {at} {random}
```
feedback: Great! You get it!
- option: |-
```
{print} You win... 'prices {at} {random}'
```
feedback: Hedy will literally print 'prices {at} {random}'
- option: |-
```
{print} You win... prices {at} {random}
```
feedback: You need some quotation marks!
- option: |-
```
{print} 'You win... prices {at} {random}'
```
feedback: Hedy will literally print 'prices {at} {random}''
hint: 'Think carefully: what is a variable and should be outside of the quotation marks? And what are normal words that should be inside?.'
correct_answer: A
question_score: '10'
7:
question_text: What's wrong with this code?
code: |-
question {is} {ask} What do you want to know?
answers {is} yes, no, maybe
{print} answers {at} {random}
mp_choice_options:
- option: Quotation marks are missing in line 1
feedback: Correct!
- option: Quotation marks are missing in line 2
feedback: A variable doesn't need quotes
- option: Quotation marks are missing in line 3
feedback: You don't want Hedy to literally print 'answers {at} {random}' so no quotation marks needed here!
- option: Nothing, this code is good as is!
feedback: Look carefully. You missed a mistake!
hint: Check each line on whether they'd need quotation marks or not.
correct_answer: A
question_score: '10'
8:
question_text: What would be a good next line for this code?
code: |-
{print} 'Welcome at the money show!'
{print} 'In front of you are 3 doors'
door {is} {ask} 'Which door do you choose?'
mp_choice_options:
- option: |-
```
{print} So you pick door door
```
feedback: We need quotation marks
- option: |-
```
{print} 'So you pick ' door door
```
feedback: If the player chooses door 3, Hedy will say 'So you pick 3 3
- option: |-
```
{print} 'So you pick door ' door
```
feedback: Super!
- option: |-
```
{print} 'So you pick door door'
```
feedback: Hedy will literally print 'So you pick door door
hint: The second word door should be replaced with the number, the first should still be the word door...
correct_answer: C
question_score: '10'
9:
question_text: What will never appear in your output screen?
code: |-
clubs {is} Real Madrid, Bayern Munchen, Manchester United, Ajax
{print} clubs {at} {random} ' is going the win the champions league'
mp_choice_options:
- option: Ajax is going to win the champions league
feedback: Hedy could `{print}` that
- option: Real Madrid is going to win the champions league
feedback: Hedy could `{print}` that
- option: Bayer Munchen is going to win the champions league
feedback: Hedy could `{print}` that
- option: FC Barcelona is going to win the champions league
feedback: That's right. It's not in the list
hint: What are Hedy's options to randomly pick from?
correct_answer: D
question_score: '10'
10:
question_text: Which statement is true?
code: |-
people {is} mom, dad, Emma, Sophie
{print} The dishes are done by...
{print} people {at} {random}
mp_choice_options:
- option: Quotation marks are missing in line 1
feedback: A list doesn't need quotation marks
- option: Quotation marks are missing in line 2
feedback: Correct
- option: Quotation marks are missing in both line 2 and 3
feedback: Line 3 doesn't need quotation marks because it's not printed literally
- option: Nothing, this code has no mistakes
feedback: You missed one!
hint: One line needs quotation marks, because you want it to be printed literally.
correct_answer: B
question_score: '10'
5:
1:
question_text: What is true?
code: |-
number {is} {ask} 'What is your lucky number?'
{if} number {is} 5 {print} 'Mine too!'
_?_ {print} 'My lucky number is 5!'
mp_choice_options:
- option: In level 5 `{print}` works differently than in level 4
feedback: '`{print}` is still the same'
- option: In level 5 `{ask}` works differently than in level 4
feedback: '`{ask}` is still the same'
- option: In level 5 `{ask}` and `{print}` work differently than in level 4
feedback: '`No these commands remain the same'
- option: In level 5 `{ask}` and `{print}` work the same as in level 4
feedback: Correct!
hint: We have only learned a new command in level 5.
correct_answer: D
question_score: '10'
2:
question_text: What appears in your output screen when you type in the name Hedy?
code: |-
name {is} {ask} 'What is your name?'
{if} name {is} Hedy {print} 'fun' {else} {print} 'less fun'
mp_choice_options:
- option: fun
feedback: That's right!
- option: less fun
feedback: If the name is Hedy, it will say 'fun''
- option: Hedy
feedback: No, it doesn't print the name
- option: Error
feedback: Fortunately not!
hint: '`{if}` name `{is}` Hedy `{print}` ...?'
correct_answer: A
question_score: '10'
3:
question_text: What is the right password?
code: |-
password {is} {ask} 'What is the password?'
{if} password {is} SECRET {print} 'Correct!'
{else} {print} 'ALARM! INTRUDER!'
mp_choice_options:
- option: Correct!
feedback: This is printed when you type in the correct password
- option: SECRET
feedback: That's right!'
- option: password
feedback: The password isn't password...
- option: ALARM INTRUDER
feedback: This is printed when you type in the incorrect password!
hint: '`{if}` password `{is}` ... `{print}` ''Correct!''!'''
correct_answer: B
question_score: '10'
4:
question_text: What does Hedy print when you type in the wrong password?
code: |-
password {is} {ask} 'What is the password?'
{if} password {is} SECRET {print} 'Correct!'
{else} {print} 'ALARM! INTRUDER!'
mp_choice_options:
- option: Correct
feedback: That's printed if the correct answer is given, not the wrong one...
- option: SECRET
feedback: That's not the right answer
- option: Wrong!
feedback: No, this is not what Hedy will print
- option: ALARM! INTRUDER!
feedback: Great job!
hint: Your computer will sound the alarm for intruders!
correct_answer: D
question_score: '10'
5:
question_text: Why will Hedy say 'ALARM! INTRUDER' when you type in 'secret'?
code: |-
password {is} {ask} 'What is the password?'
{if} password {is} SECRET {print} 'Correct!'
{else} {print} 'ALARM! INTRUDER!'
mp_choice_options:
- option: Because it needs to be in capitals, so SECRET
feedback: Indeed!
- option: Because the password is alarm
feedback: No, this is not the password.
- option: Because it's spelled wrong.
feedback: That's not how you spell secret
- option: Because Hedy makes a mistake
feedback: No, Hedy is right
hint: The spelling of the word has to be exactly the same.
correct_answer: A
question_score: '10'
6:
question_text: Which word should be on the place of the question mark in the last line?
code: |-
{print} 'Im Hedy the football fortune teller!'
{print} 'I will predict what place your team will end up!'
club is {ask} 'Which club is your favorite?'
{if} club {is} ajax {print} 'Ajax is going to win of course!'
_?_ {print} 'Sorry, your club is gonna be in last place...'
mp_choice_options:
- option: |-
```
{if}
```
feedback: '`{if}` is already in the line above'
- option: |-
```
{at} {random}
```
feedback: No, you need `{else}`.
- option: |-
```
{else}
```
feedback: Great!
- option: |-
```
{print}
```
feedback: '`{print}` is already there, we need a word before it!'
hint: '`{if}` goes together with...?'
correct_answer: C
question_score: '10'
7:
question_text: Which word should be in the place of the question mark?
code: |-
{print} 'I can predict if you will be a millionair or not!'
name {is} {ask} 'Whats your name?'