forked from hedyorg/hedy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zh_Hans.yaml
2780 lines (2779 loc) · 127 KB
/
zh_Hans.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: "海迪"
feedback: "不是这个!"
- option: "Haydie"
feedback: "不是这个!"
- option: "Heidi"
feedback: "不是这个!"
correct_answer: "A"
hint: "它得名于海蒂拉玛。"
question_score: '10'
2:
question_text: "哪个命令可以用来打印文字?"
mp_choice_options:
- option: |
```
{echo}
```
feedback: "`{echo}` 会复述你给出回答。"
- option: |
```
{print}
```
feedback: "正确!"
- option: |
```
你好
```
feedback: "“你好”不是一个命令。"
- option: |
```
{ask}
```
feedback: "你可以使用 `{ask}` 来提问。"
correct_answer: "B"
hint: "_?_ 你好世界!"
question_score: '10'
code: |
___ Hello!
3:
question_text: "如何询问某个人最喜欢的颜色是什么?"
mp_choice_options:
- option: |
```
{print} 你最喜欢的颜色是什么?
```
feedback: "`{print}`能打印出文字,但是不能用来提问。"
- option: |
```
{ask} {print} 你最喜欢的颜色是什么?
```
feedback: "你只需要一个命令,不需要两个。"
- option: |
```
{ask} 你最喜欢的颜色是什么?
```
feedback: "Great!"
- option: |
```
{echo} 你最喜欢的颜色是什么?
```
feedback: "`{echo}` 会对你复述你的回答。"
correct_answer: "C"
hint: "你可以用`{ask}`命令提问"
question_score: '10'
4:
question_text: "这段代码哪里错了?"
code: |-
你好,我是海迪!
{ask} 你是谁?
{echo} 你好……
mp_choice_options:
- option: "第一行缺少了`{print}`。"
feedback: "正确!"
- option: "第一行的“Im”的写法在英语中是错误的。"
feedback: "我们故意把“I'm”写错成“Im”,因为海迪现在还无法理解撇号。"
- option: "`{echo}`不是一个命令。"
feedback: "`{echo}`是一个命令。错的是别的地方。"
- option: "没有错!这代码很完美!"
feedback: "错了,仔细看!"
correct_answer: "A"
hint: "第一行看上去不对"
question_score: '10'
5:
question_text: "第二行缺少了哪个命令?"
code: |-
{ask} 你最喜欢的宠物是什么?
_?_ 所以你最喜欢的宠物是...
mp_choice_options:
- option: |
```
{print}
```
feedback: "不,你想要的是复述你的回答。"
- option: |
```
Hedy
```
feedback: "“海迪”不是一个命令。"
- option: |
```
{ask}
```
feedback: "你可以用`{ask}`提出一个问题。"
- option: |
```
{echo}
```
feedback: "Right on!"
correct_answer: "D"
hint: "你想要在第二行的最后看到回答……"
question_score: '10'
6:
question_text: "这段代码哪里错了?"
code: |-
{print} 你好,我是海迪!
{print} 你支持哪支足球队?
{echo} 你支持……
{print} 酷!我也一样!
mp_choice_options:
- option: "In line 1 `{print}` should be replaced with `{ask}`."
feedback: "第一行的`{print}`是正确的。"
- option: "In line 2, `{print}` should be replaced with `{ask}`."
feedback: "很好!你注意到了!"
- option: "第三行必须以`{print}`,而不是`{echo}`开头。"
feedback: "`{echo}`是正确的。"
- option: "第四行的`{print}`写错了。"
feedback: "不,其他地方有错误"
correct_answer: "B"
hint: "检查`{print}`命令。"
question_score: '10'
7:
question_text: "这段代码哪里错了?"
code: |-
{print} 欢迎来到海迪餐厅!
{ask} 你想吃什么?
{echo} 所以你想点...
{print} 马上就来!好好享受!
mp_choice_options:
- option: "In line 1 `{print}` needs to be replaced with `{ask}`"
feedback: "你确定有哪里错误吗?"
- option: "In line 1 `{print}` needs to be replaced with `{echo}`"
feedback: "你确定有哪里错误吗?"
- option: "In line 3 `{echo}` needs to be replaced with `{print}`"
feedback: "你确定有哪里错误吗?"
- option: "没有!这代码很完美!"
feedback: "正确!"
correct_answer: "D"
hint: "逐行检查代码"
question_score: '10'
8:
question_text: "如何使用`{echo}`命令?"
mp_choice_options:
- option: "你可以用它来`{ask}` 一个问题。"
feedback: "这是`{ask}`的作用!"
- option: "你可以用它打印文本。"
feedback: "这是`{print}`的作用!"
- option: "你可以用它复述一个答案。"
feedback: "做得好!"
- option: "你可以用它让文本消失。"
feedback: "不对……"
correct_answer: "C"
hint: "`{echo}`必须在`{ask}`命令之后使用。"
question_score: '10'
9:
question_text: "这段代码有什么错误?"
code: |-
{print} 你好!
{print} 你好吗?
{echo} 所以你……
mp_choice_options:
- option: "第1行的`{print}`应该改成`{ask}`"
feedback: "不,`{print}`是对的。哪一句是在提出问题?"
- option: "第2行的`{print}`应该改成`{ask}`"
feedback: "厉害!"
- option: "第3行的`{echo}`应该改成`{ask}`"
feedback: "不,`{echo}`是对的。哪一句是在提出问题?"
- option: "没有。这代码很完美!"
feedback: "仔细观察错误的地方……"
correct_answer: "B"
hint: "`{ask}`让你能提出一个问题"
question_score: '10'
10:
question_text: "准备好进入第2关了?"
mp_choice_options:
- option: "是的!"
feedback: "好!让我们进入下一关!"
- option: "没有"
feedback: "丢人……你可以在第一关里再练习一下!"
correct_answer: "A"
hint: "走起!"
question_score: '10'
2:
1:
question_text: "哪一句话是对的?"
mp_choice_options:
- option: "你可以用`{print}`命令来提问。"
feedback: "这是`{ask}`的作用"
- option: "你可以用 {ask} 命令来复述回答。"
feedback: "不是的"
- option: "你可以用`{print}`命令显示文本"
feedback: "不错"
- option: "你可以用 {sleep} 命令清除屏幕上的文本。"
feedback: "这不是sleep的作用。"
correct_answer: "C"
hint: "`{print}`的作用仍然和第1关中一样"
question_score: '10'
2:
question_text: "哪段代码是正确的?"
mp_choice_options:
- option: |
```
名字 {is} {ask} 你叫什么?
```
feedback: "厉害!"
- option: |
```
{ask} {is} 名字 你叫什么?
```
feedback: "用词对了,但是顺序不对!"
- option: |
```
{ask} 你叫什么?
```
feedback: "这在第1关里是对的,但是第2关里用法变了。"
- option: |
```
{ask} 你叫什么? {is} 名字
```
feedback: "用词对了,但是顺序不对!"
correct_answer: "A"
hint: "`{ask}`和第一关里用法不一样了"
question_score: '10'
3:
question_text: "如果你运行这段代码,它会输出什么?"
code: |-
名字 {is} 马琳
{print} 名字 去了市场,她买了一个苹果。
mp_choice_options:
- option: "名字 去了市场,她买了一个苹果。"
feedback: "“名字”会被替换成马琳"
- option: "马琳 去市场。"
feedback: "后半句怎么不见了!"
- option: "马琳 去了市场,她买了一个苹果。"
feedback: "对了!"
- option: "马琳 去了市场,马琳 买了一个苹果。"
feedback: "“她”不会被替换成名字"
correct_answer: "C"
hint: "“名字”会被替换成马琳"
question_score: '10'
4:
question_text: "如果你运行这段代码,它会输出什么?"
code: |-
名字 {is} 海迪
{print} 你好,我的 名字 是 名字!
mp_choice_options:
- option: "你好,我的 名字 是 名字"
feedback: "变量“名字”会被替换成海迪"
- option: "你好,我的 名字 是 海迪"
feedback: "变量“名字”会被替换成海迪"
- option: "你好,我的 海迪 是 名字"
feedback: "变量“名字”会被替换成海迪"
- option: "你好,我的 海迪 是 海迪"
feedback: "正确,这个问题会在第三关解决!"
correct_answer: "D"
hint: "两个“名字”都会被替换成“海迪”"
question_score: '10'
5:
question_text: "当你使用 `{sleep}` 命令时会发生什么?"
mp_choice_options:
- option: "它会让电脑变慢"
feedback: "幸好不会!"
- option: "它会关闭海迪"
feedback: "幸好不会!"
- option: "程序会暂停一下,然后继续"
feedback: "对!"
- option: "它用在程序结尾,让海迪知道程序结束了"
feedback: "不,它在代码结尾不会有任何用处"
correct_answer: "C"
hint: "电脑会在`{sleep}`命令处等待一秒"
question_score: '10'
6:
question_text: "空白的一行应该填什么?"
code: |-
{print} 最佳编程语言奖属于……
_?_
{print} 海迪!
mp_choice_options:
- option: |
```
{sleep}
```
feedback: "太棒了!"
- option: |
```
{echo}
```
feedback: "这里没有东西需要复述"
- option: |
```
{print}
```
feedback: "这里没有东西需要`{print}`"
- option: |
```
{ask}
```
feedback: "这里没有问题需要问"
correct_answer: "A"
hint: "通过停顿制造紧张感……"
question_score: '10'
7:
question_text: "第2行应该用什么命令?"
code: |-
{print} 我会在3秒后爆炸!
_?_
{print} 砰!
mp_choice_options:
- option: |
```
{print} 3
```
feedback: "你不需要`{print}`"
- option: |
```
{sleep} 3
```
feedback: "太棒了!"
- option: |
```
{sleep}
```
feedback: "这就变成1秒后爆炸了"
- option: |
```
{sleep} {sleep} {sleep}
```
feedback: "可以简单点,直接写数字3"
correct_answer: "B"
hint: "你需要让电脑等待3秒"
question_score: '10'
8:
question_text: "如何改正第一行的代码?"
code: |-
{ask} {is} 你多大了?
{print} 年龄
mp_choice_options:
- option: |
```
年龄 {ask} {is} 你多大了?
```
feedback: "顺序错了"
- option: |
```
{ask} {is} 年龄 你多大了?
```
feedback: "顺序错了"
- option: |
```
年龄 {is} {ask} 你多大了?
```
feedback: "对了!"
- option: |
```
年龄 {is} 你多大了?
```
feedback: "`{ask}`命令呢?"
correct_answer: "C"
hint: "变量名需要放在最前面"
question_score: '10'
9:
question_text: "这段代码有什么错误?"
code: |-
狗 {is} 某动物
{print} 我 喜欢 某动物
mp_choice_options:
- option: "第1行应该是:狗 `{is}` 动物"
feedback: "“某动物”是变量名"
- option: "第1行应该是:某动物 `{is}` 狗"
feedback: "很好!"
- option: "第2行应该是:`{print}` 我 喜欢 动物"
feedback: "“某动物”是变量名"
- option: "第2行应该是:`{sleep}` 我 喜欢 动物"
feedback: "Sleep 并非用来 `{print}` 文字"
correct_answer: "B"
hint: "你需要`{print}`“我 喜欢 狗”"
question_score: '10'
10:
question_text: "第1行应该用什么命令?"
code: |-
口味 {is} _?_
{print} 你最喜欢的冰淇淋是……
{sleep}
{print} 口味
mp_choice_options:
- option: |
```
{sleep} 3
```
feedback: "你需要问出最喜欢的口味!"
- option: |
```
{print} 草莓味
```
feedback: "你不应该在一行的中间用`{print}`命令……"
- option: |
```
草莓味,巧克力味,香草味
```
feedback: "你这是在写列表。你现在还不需要列表。"
- option: |
```
{ask} 你喜欢什么口味的冰淇淋?
```
feedback: "对!"
correct_answer: "D"
hint: "你需要`{ask}`一个问题"
question_score: '10'
3:
1:
question_text: "你需要使用哪一个指令才能让海迪随机选择东西呢?"
mp_choice_options:
- option: |
```
{print}
```
feedback: "`{print}` 用来打印文字"
- option: |
```
{ask}
```
feedback: "`{ask}` 用来问一个问题"
- option: |
```
{is}
```
feedback: "`{is}` 用于制作列表"
- option: |
```
{at} {random}
```
feedback: "正确!"
correct_answer: "D"
hint: "Arbitrarily 表示没有计划的,随机性的."
question_score: '10'
2:
question_text: "这个程序有什么问题呢?"
code: |-
动物 {is} 狗 猫 牛
{print} 动物 {at} {random}
mp_choice_options:
- option: "你需要在第一行加入逗号: 狗, 猫, 牛."
feedback: "干的好!"
- option: "第一行需要以 `{print}`为开头."
feedback: "不,你不许要`{print}`"
- option: "第二行需要放 'animal', 而非 'animals'',"
feedback: "animals is correct."
- option: "`{at} {random}` 的拼法不正确"
feedback: "`{at} {random}` 是正确的拼法"
correct_answer: "A"
hint: "第一行似乎有什么问题"
question_score: '10'
3:
question_text: "你该如何修复第二行的问题呢?"
code: |-
选项 {is} 石头, 布, 剪刀
{print} 石头, 布, 剪刀 {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} 石头 {at} {random}
```
feedback: "你或许不想要海迪每一次都 {print} 石头, 有时候你或许想要剪刀或布."
- option: |
```
{print} options {at} {random}
```
feedback: "非常棒!"
- option: "没事,这个代码是正确的!"
feedback: "小心注意任何失误"
correct_answer: "C"
hint: "变数 (the list) 称作选项."
question_score: '10'
4:
question_text: "为了打印一个随机价格,第2行应该怎么改?"
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}` 放在了变数后."
- option: "没事, 这代码没问题."
feedback: "注意任何你错过的失误!"
correct_answer: "B"
hint: "变数的名字是价格"
question_score: '10'
5:
question_text: "这代码有什么问题呢?"
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: "不,这并没有错。"
- option: "Line 2 needs to say `{ask}` instead of `{print}`"
feedback: "不,这并没有错。"
- option: "Line 2 needs to say answers `{at} {random}` `{is}` yes, no, maybe"
feedback: "不,这并没有错。"
- option: "没事, 这个代码很完美"
feedback: "That's right!"
correct_answer: "D"
hint: "Does this code even have a mistake?"
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."
correct_answer: "B"
hint: "There is something wrong with line 2."
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"
correct_answer: "C"
hint: "The `{add}` command adds a book, but which one?"
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!"
correct_answer: "D"
hint: "There are 3 flavors, bit 2 are removed. Which one remains?"
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!"
correct_answer: "C"
hint: "Look at line 3"
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."
correct_answer: "A"
hint: "The person who walked the dog yesterday should be removed from the list."
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."
correct_answer: "A"
hint: "In level 4 you need quotation marks for 2 commands."
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."
correct_answer: "B"
hint: "Pick the right quotation marks."
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!"
correct_answer: "D"
hint: "Both before and after the words you want to print should be a quotation mark."
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."
correct_answer: "B"
hint: "From level 4 on you need to use quotation marks."
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."
correct_answer: "C"
hint: "You don't want Hedy to literally print 'options {at} {random}', you want it to print 'rock' or 'paper' or 'scissors'."
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}''"
correct_answer: "A"
hint: "Think carefully: what is a variable and should be outside of the quotation marks? And what are normal words that should be inside?."
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!"
correct_answer: "A"
hint: "Check each line on whether they'd need quotation marks or not."
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"
correct_answer: "C"
hint: "The second word door should be replaced with the number, the first should still be the word door..."
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"
correct_answer: "D"
hint: "What are Hedy's options to randomly pick from?"
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!"
correct_answer: "B"
hint: "One line needs quotation marks, because you want it to be printed literally."
question_score: '10'
5:
1:
question_text: "What is true?"
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!"
correct_answer: "D"
hint: "We have only learned a new command in level 5."
question_score: '10'
code: "number {is} {ask} 'What is your lucky number?'\n{if} number {is} 5 {print} 'Mine too!'\n_?_ {print} 'My lucky number is 5!'"
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!"
correct_answer: "A"
hint: "`{if}` name `{is}` Hedy `{print}` ...?"
question_score: '10'
3:
question_text: "正确的密码是什么?"
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!"
correct_answer: "B"
hint: "`{if}` password `{is}` ... `{print}` 'Correct!'!'"
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!"
correct_answer: "D"
hint: "Your computer will sound the alarm for intruders!"
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"
correct_answer: "A"
hint: "The spelling of the word has to be exactly the same."
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!"
correct_answer: "C"
hint: "`{if}` goes together with...?"
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?'
{if} name {is} Hedy {print} 'You will be a millionair!'
{else} _?_ 'Unfortunately... No big money for you.'
mp_choice_options:
- option: |
```
{if}
```
feedback: "`{if}` is in the line above."
- option: |
```
{at} {random}
```