@jutge.org/toolkit 4.4.17 → 4.4.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/assets/problems/quizzes/demo-quiz.pbm/README.md +1 -0
  2. package/assets/problems/quizzes/demo-quiz.pbm/ca/award.png +0 -0
  3. package/assets/problems/quizzes/demo-quiz.pbm/ca/quiz.yml +1 -1
  4. package/assets/problems/quizzes/demo-quiz.pbm/ca/single-choice.yml +9 -1
  5. package/assets/problems/quizzes/demo-quiz.pbm/ca/some-drawing.svg +150 -0
  6. package/assets/problems/quizzes/demo-quiz.pbm/ca/some-image.png +0 -0
  7. package/assets/problems/quizzes/demo-quiz.pbm/en/quiz.yml +1 -1
  8. package/assets/problems/quizzes/demo-quiz.pbm/en/single-choice.yml +9 -1
  9. package/assets/problems/quizzes/demo-quiz.pbm/en/some-drawing.svg +150 -0
  10. package/assets/problems/quizzes/demo-quiz.pbm/en/some-image.png +0 -0
  11. package/assets/problems/quizzes/heroes-of-computation.pbm/README.md +11 -0
  12. package/assets/problems/quizzes/heroes-of-computation.pbm/en/handler.yml +1 -0
  13. package/assets/problems/quizzes/heroes-of-computation.pbm/en/q01.yml +14 -0
  14. package/assets/problems/quizzes/heroes-of-computation.pbm/en/q02.yml +14 -0
  15. package/assets/problems/quizzes/heroes-of-computation.pbm/en/q03.yml +14 -0
  16. package/assets/problems/quizzes/heroes-of-computation.pbm/en/q04.yml +15 -0
  17. package/assets/problems/quizzes/heroes-of-computation.pbm/en/q05.yml +32 -0
  18. package/assets/problems/quizzes/heroes-of-computation.pbm/en/q06.yml +12 -0
  19. package/assets/problems/quizzes/heroes-of-computation.pbm/en/q07.yml +23 -0
  20. package/assets/problems/quizzes/heroes-of-computation.pbm/en/q08.yml +14 -0
  21. package/assets/problems/quizzes/heroes-of-computation.pbm/en/q09.yml +14 -0
  22. package/assets/problems/quizzes/heroes-of-computation.pbm/en/q10.yml +23 -0
  23. package/assets/problems/quizzes/heroes-of-computation.pbm/en/quiz.yml +48 -0
  24. package/assets/problems/quizzes/the-answer-is-42.pbm/en/quiz.yml +2 -0
  25. package/dist/index.js +469 -465
  26. package/docs/quiz-anatomy.md +74 -59
  27. package/package.json +2 -1
  28. package/toolkit/quiz.ts +30 -3
@@ -13,6 +13,7 @@
13
13
  - Hints and feedback
14
14
  - Different scoring methods
15
15
  - Randomized questions
16
+ - Include images in PNG and SVG format
16
17
  - Multiple languages (English and Catalan)
17
18
 
18
19
  ## Abstract
@@ -2,7 +2,7 @@ title: Qüestionari de demostració
2
2
 
3
3
  statement: Aquest qüestionari mostra les possibilitats dels problemes de qüestionari a Jutge.org.
4
4
 
5
- shuffle: true
5
+ shuffle: false
6
6
 
7
7
  questions:
8
8
  - title: Pregunta d'elecció única
@@ -1,7 +1,15 @@
1
1
 
2
2
  type: SingleChoice
3
3
 
4
- text: "Quin és el resultat de l'avaluació de `$a + $b`?"
4
+ text: |
5
+
6
+ Quin és el resultat de l'avaluació de `$a + $b`?
7
+
8
+ Es poden incloure gràfics en format PNG i SVG així:
9
+
10
+ <img src="some-image.png" alt="Imatge PNG" width="200"/>
11
+
12
+ <img src="some-drawing.svg" alt="Dibuix SVG" height="200"/>
5
13
 
6
14
  choices:
7
15
  - text: "`$s1`"
@@ -0,0 +1,150 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ width="600pt"
4
+ height="600pt"
5
+ viewBox="0 0 600 600"
6
+ version="1.1"
7
+ id="svg23"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ xmlns:svg="http://www.w3.org/2000/svg">
10
+ <defs
11
+ id="defs23" />
12
+ <path
13
+ fill-rule="evenodd"
14
+ fill="rgb(90.557861%, 88.806152%, 93.145752%)"
15
+ fill-opacity="1"
16
+ d="M 329.96875 519.757812 C 409.039062 519.757812 473.527344 508.703125 473.527344 495.160156 C 473.527344 481.617188 409.039062 470.566406 329.96875 470.566406 C 250.902344 470.566406 186.414062 481.617188 186.414062 495.160156 C 186.414062 508.703125 250.902344 519.757812 329.96875 519.757812 "
17
+ id="path1" />
18
+ <path
19
+ fill-rule="evenodd"
20
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
21
+ fill-opacity="1"
22
+ d="M 182.675781 106.578125 C 189.433594 107.195312 194.410156 113.167969 193.796875 119.921875 C 193.179688 126.679688 187.203125 131.65625 180.449219 131.042969 C 173.695312 130.425781 168.714844 124.449219 169.332031 117.695312 C 169.945312 110.9375 175.921875 105.960938 182.675781 106.578125 "
23
+ id="path2" />
24
+ <path
25
+ fill-rule="evenodd"
26
+ fill="rgb(79.972839%, 17.663574%, 13.716125%)"
27
+ fill-opacity="1"
28
+ d="M 185.527344 108.3125 C 189.507812 108.675781 192.445312 112.199219 192.082031 116.179688 C 191.71875 120.164062 188.195312 123.101562 184.210938 122.738281 C 180.226562 122.375 177.292969 118.851562 177.65625 114.867188 C 178.015625 110.882812 181.539062 107.945312 185.527344 108.3125 "
29
+ id="path3" />
30
+ <path
31
+ fill-rule="evenodd"
32
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
33
+ fill-opacity="1"
34
+ d="M 156.367188 77.363281 C 157.550781 77.472656 158.390625 78.855469 158.246094 80.457031 C 158.101562 82.058594 157.023438 83.269531 155.839844 83.164062 C 154.65625 83.054688 153.8125 81.667969 153.960938 80.066406 C 154.105469 78.46875 155.183594 77.253906 156.367188 77.363281 "
35
+ id="path4" />
36
+ <path
37
+ fill-rule="evenodd"
38
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
39
+ fill-opacity="1"
40
+ d="M 199.863281 104.375 C 209.738281 105.273438 217.007812 114.003906 216.109375 123.875 C 215.210938 133.746094 206.476562 141.019531 196.609375 140.121094 C 186.734375 139.222656 179.464844 130.492188 180.367188 120.621094 C 181.261719 110.75 189.992188 103.476562 199.863281 104.375 "
41
+ id="path5" />
42
+ <path
43
+ fill-rule="evenodd"
44
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
45
+ fill-opacity="1"
46
+ d="M 187.8125 167.726562 L 189.859375 162.445312 C 193.75 152.398438 194.714844 141.804688 192.703125 131.222656 L 209.796875 132.777344 L 208.488281 136.230469 C 204.910156 145.675781 212.234375 155.988281 225.742188 160.515625 Z M 187.8125 167.726562 "
47
+ id="path6" />
48
+ <path
49
+ fill-rule="evenodd"
50
+ fill="rgb(84.017944%, 41.394043%, 24.273682%)"
51
+ fill-opacity="1"
52
+ d="M 199.226562 131.816406 L 209.796875 132.777344 L 208.488281 136.230469 C 206.773438 140.746094 207.558594 145.464844 210.324219 149.652344 C 200.917969 148.542969 193.816406 143.441406 194.300781 138.023438 C 194.535156 135.5 196.371094 133.339844 199.226562 131.816406 "
53
+ id="path7" />
54
+ <path
55
+ fill-rule="evenodd"
56
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
57
+ fill-opacity="1"
58
+ d="M 174.316406 184.882812 L 166.246094 180.664062 C 148.199219 171.222656 134.660156 154.972656 128.636719 135.515625 L 129.554688 125.46875 C 131.121094 108.273438 137.183594 91.792969 147.140625 77.679688 L 147.667969 86.890625 C 148.597656 103.074219 147.117188 119.3125 143.28125 135.0625 L 152.871094 144.28125 C 163.878906 154.855469 178.804688 160.347656 194.042969 159.433594 Z M 174.316406 184.882812 "
59
+ id="path8" />
60
+ <path
61
+ fill-rule="evenodd"
62
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
63
+ fill-opacity="1"
64
+ d="M 235.613281 152.222656 L 247.527344 158.566406 C 259.570312 164.976562 272.4375 169.710938 285.761719 172.636719 C 306.808594 177.253906 325.097656 190.160156 336.503906 208.4375 C 315.535156 204.746094 306.585938 198.875 288.265625 188.535156 C 275.355469 181.25 271.40625 185.207031 247.5 176.816406 Z M 235.613281 152.222656 "
65
+ id="path9" />
66
+ <path
67
+ fill-rule="evenodd"
68
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
69
+ fill-opacity="1"
70
+ d="M 215.113281 118.582031 C 217.886719 127.25 218.675781 136.480469 217.359375 145.578125 L 215.992188 146.164062 C 213.585938 147.191406 211.183594 147.296875 208.695312 146.480469 L 206.617188 145.796875 C 193.832031 141.617188 184.5625 130.492188 182.757812 117.160156 L 201.109375 108.847656 L 213.507812 115.371094 Z M 215.113281 118.582031 "
71
+ id="path10" />
72
+ <path
73
+ fill-rule="evenodd"
74
+ fill="rgb(79.972839%, 17.663574%, 13.716125%)"
75
+ fill-opacity="1"
76
+ d="M 218.730469 249.058594 L 218.027344 237.359375 C 215.355469 223.597656 205.828125 212.167969 192.785156 207.054688 L 174.316406 184.882812 L 178.929688 176.710938 C 191.269531 154.851562 210.972656 147.449219 235.613281 152.222656 L 250.660156 165.789062 C 257.332031 171.800781 264.367188 176.144531 256.460938 187.15625 L 263.5625 201.792969 C 259.609375 216.898438 269.894531 230.5625 285.425781 238.054688 L 262.363281 257.800781 Z M 218.730469 249.058594 "
77
+ id="path11" />
78
+ <path
79
+ fill-rule="evenodd"
80
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
81
+ fill-opacity="1"
82
+ d="M 186.828125 165.714844 C 195.757812 156 207.113281 151.203125 220.386719 150.859375 L 222.757812 152.433594 C 226.777344 155.105469 229.027344 159.75 228.632812 164.558594 C 228.246094 169.371094 225.269531 173.589844 220.871094 175.570312 C 216.46875 177.554688 211.335938 176.988281 207.472656 174.097656 C 201.410156 169.5625 194.300781 166.683594 186.828125 165.714844 "
83
+ id="path12" />
84
+ <path
85
+ fill-rule="evenodd"
86
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
87
+ fill-opacity="1"
88
+ d="M 285.425781 238.054688 L 315.15625 258.941406 C 345.6875 280.996094 370.167969 310.382812 386.335938 344.390625 L 402.699219 354.328125 C 428.308594 369.886719 445.6875 405.816406 436.390625 452.15625 C 428.410156 425.394531 384.566406 387.691406 365.078125 360.085938 C 330.660156 333.085938 293.558594 310.902344 259.875 284.488281 C 245.722656 318.425781 235.035156 342.453125 206.5 368.351562 L 218.710938 374.300781 C 259.535156 394.199219 265.628906 427.300781 278.648438 465.707031 L 178.699219 394.160156 C 164.363281 383.898438 163.429688 365.464844 170.996094 349.535156 L 218.730469 249.058594 C 235.347656 236.4375 265.21875 233.644531 285.425781 238.054688 "
89
+ id="path13" />
90
+ <path
91
+ fill-rule="evenodd"
92
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
93
+ fill-opacity="1"
94
+ d="M 197.855469 20.035156 C 204.910156 25.296875 205.4375 36.523438 199.03125 45.109375 C 192.625 53.691406 181.714844 56.386719 174.664062 51.121094 C 167.609375 45.859375 167.082031 34.632812 173.488281 26.050781 C 179.890625 17.464844 190.800781 14.773438 197.855469 20.035156 "
95
+ id="path14" />
96
+ <path
97
+ fill-rule="evenodd"
98
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
99
+ fill-opacity="1"
100
+ d="M 199.492188 17.835938 C 207.546875 23.84375 208.144531 36.65625 200.835938 46.453125 C 196.5 52.261719 190.363281 55.707031 184.398438 56.296875 C 180.941406 57.300781 177.675781 58.800781 174.703125 60.734375 C 171.429688 62.851562 168.515625 65.480469 166.074219 68.527344 L 164.636719 67.382812 C 167.207031 64.171875 170.269531 61.410156 173.695312 59.191406 C 175.519531 58.007812 177.457031 56.976562 179.476562 56.109375 C 177.164062 55.683594 174.964844 54.765625 173.027344 53.316406 C 171.09375 51.878906 169.589844 50.042969 168.523438 47.953125 C 168.269531 50.132812 167.835938 52.277344 167.21875 54.359375 C 166.066406 58.273438 164.292969 61.996094 161.945312 65.375 L 160.441406 64.324219 C 162.667969 61.117188 164.355469 57.574219 165.457031 53.835938 C 166.453125 50.453125 166.957031 46.925781 166.945312 43.347656 C 165.78125 37.445312 167.324219 30.539062 171.683594 24.703125 C 178.992188 14.90625 191.441406 11.832031 199.492188 17.835938 "
101
+ id="path15" />
102
+ <path
103
+ fill-rule="evenodd"
104
+ fill="rgb(79.972839%, 17.663574%, 13.716125%)"
105
+ fill-opacity="1"
106
+ d="M 161.136719 63.054688 L 167.074219 67.484375 L 154.425781 84.441406 L 148.484375 80.011719 Z M 161.136719 63.054688 "
107
+ id="path16" />
108
+ <path
109
+ fill-rule="evenodd"
110
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
111
+ fill-opacity="1"
112
+ d="M 145.605469 79.917969 L 147.664062 77 C 149.472656 74.4375 152.226562 72.695312 155.324219 72.160156 C 158.417969 71.625 161.59375 72.34375 164.160156 74.152344 L 159.128906 81.285156 L 156.21875 79.84375 C 153.578125 78.539062 150.550781 78.265625 147.722656 79.070312 Z M 145.605469 79.917969 "
113
+ id="path17" />
114
+ <path
115
+ fill-rule="evenodd"
116
+ fill="rgb(79.972839%, 17.663574%, 13.716125%)"
117
+ fill-opacity="1"
118
+ d="M 229.164062 20.855469 C 232.753906 21.183594 235.40625 24.359375 235.074219 27.949219 C 234.75 31.539062 231.570312 34.1875 227.976562 33.859375 C 224.390625 33.53125 221.746094 30.355469 222.070312 26.761719 C 222.398438 23.175781 225.574219 20.527344 229.164062 20.855469 "
119
+ id="path18" />
120
+ <path
121
+ fill-rule="evenodd"
122
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
123
+ fill-opacity="1"
124
+ d="M 333.578125 206.234375 L 337.019531 207.175781 C 340.046875 208.003906 342.621094 210 344.179688 212.730469 C 345.730469 215.453125 346.140625 218.6875 345.308594 221.71875 L 336.894531 219.410156 L 337.253906 216.183594 C 337.578125 213.257812 336.808594 210.320312 335.089844 207.929688 Z M 333.578125 206.234375 "
125
+ id="path19" />
126
+ <path
127
+ fill-rule="evenodd"
128
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
129
+ fill-opacity="1"
130
+ d="M 190.5 134.824219 L 194.371094 131.015625 C 190.65625 112.046875 209.304688 107.761719 215.175781 118.785156 L 213.835938 114.976562 L 202.992188 105.738281 L 183.570312 108.238281 L 183.847656 108.8125 L 178.691406 123.535156 Z M 190.5 134.824219 "
131
+ id="path20" />
132
+ <path
133
+ fill-rule="evenodd"
134
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
135
+ fill-opacity="1"
136
+ d="M 188.988281 128.214844 C 190.355469 126.90625 193.097656 127.558594 195.113281 129.667969 C 197.128906 131.777344 197.652344 134.546875 196.28125 135.855469 C 194.910156 137.164062 192.167969 136.515625 190.152344 134.40625 C 188.136719 132.292969 187.617188 129.523438 188.988281 128.214844 "
137
+ id="path21" />
138
+ <path
139
+ fill-rule="evenodd"
140
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
141
+ fill-opacity="1"
142
+ d="M 433.71875 443.378906 L 431.898438 479.277344 L 442.519531 475.34375 L 446.285156 469.296875 C 451.925781 460.242188 450.914062 448.554688 443.808594 440.597656 L 442.105469 442.972656 C 441.152344 444.304688 439.644531 445.117188 438.011719 445.199219 C 436.378906 445.28125 433.660156 444.550781 433.71875 443.378906 "
143
+ id="path22" />
144
+ <path
145
+ fill-rule="evenodd"
146
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
147
+ fill-opacity="1"
148
+ d="M 266.519531 461.027344 L 255.261719 495.164062 L 266.546875 494.179688 L 271.773438 489.34375 C 279.613281 482.109375 281.734375 470.566406 276.980469 461.019531 L 274.714844 462.851562 C 273.441406 463.882812 271.773438 464.273438 270.175781 463.921875 C 268.578125 463.558594 266.152344 462.140625 266.519531 461.027344 "
149
+ id="path23" />
150
+ </svg>
@@ -2,7 +2,7 @@ title: Demo quiz
2
2
 
3
3
  statement: This quiz showcases the possibilities of the quiz problems at Jutge.org.
4
4
 
5
- shuffle: true
5
+ shuffle: false
6
6
 
7
7
  questions:
8
8
  - title: Single choice question
@@ -1,7 +1,15 @@
1
1
 
2
2
  type: SingleChoice
3
3
 
4
- text: "What is the result of the evaluation of `$a + $b`?"
4
+ text: |
5
+
6
+ What is the result of the evaluation of `$a + $b`?
7
+
8
+ Images can be included in PNG and SVG format as follows:
9
+
10
+ <img src="some-image.png" alt="PNG image" width="200"/>
11
+
12
+ <img src="some-drawing.svg" alt="SVG drawing" height="200"/>
5
13
 
6
14
  choices:
7
15
  - text: "`$s1`"
@@ -0,0 +1,150 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ width="600pt"
4
+ height="600pt"
5
+ viewBox="0 0 600 600"
6
+ version="1.1"
7
+ id="svg23"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ xmlns:svg="http://www.w3.org/2000/svg">
10
+ <defs
11
+ id="defs23" />
12
+ <path
13
+ fill-rule="evenodd"
14
+ fill="rgb(90.557861%, 88.806152%, 93.145752%)"
15
+ fill-opacity="1"
16
+ d="M 329.96875 519.757812 C 409.039062 519.757812 473.527344 508.703125 473.527344 495.160156 C 473.527344 481.617188 409.039062 470.566406 329.96875 470.566406 C 250.902344 470.566406 186.414062 481.617188 186.414062 495.160156 C 186.414062 508.703125 250.902344 519.757812 329.96875 519.757812 "
17
+ id="path1" />
18
+ <path
19
+ fill-rule="evenodd"
20
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
21
+ fill-opacity="1"
22
+ d="M 182.675781 106.578125 C 189.433594 107.195312 194.410156 113.167969 193.796875 119.921875 C 193.179688 126.679688 187.203125 131.65625 180.449219 131.042969 C 173.695312 130.425781 168.714844 124.449219 169.332031 117.695312 C 169.945312 110.9375 175.921875 105.960938 182.675781 106.578125 "
23
+ id="path2" />
24
+ <path
25
+ fill-rule="evenodd"
26
+ fill="rgb(79.972839%, 17.663574%, 13.716125%)"
27
+ fill-opacity="1"
28
+ d="M 185.527344 108.3125 C 189.507812 108.675781 192.445312 112.199219 192.082031 116.179688 C 191.71875 120.164062 188.195312 123.101562 184.210938 122.738281 C 180.226562 122.375 177.292969 118.851562 177.65625 114.867188 C 178.015625 110.882812 181.539062 107.945312 185.527344 108.3125 "
29
+ id="path3" />
30
+ <path
31
+ fill-rule="evenodd"
32
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
33
+ fill-opacity="1"
34
+ d="M 156.367188 77.363281 C 157.550781 77.472656 158.390625 78.855469 158.246094 80.457031 C 158.101562 82.058594 157.023438 83.269531 155.839844 83.164062 C 154.65625 83.054688 153.8125 81.667969 153.960938 80.066406 C 154.105469 78.46875 155.183594 77.253906 156.367188 77.363281 "
35
+ id="path4" />
36
+ <path
37
+ fill-rule="evenodd"
38
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
39
+ fill-opacity="1"
40
+ d="M 199.863281 104.375 C 209.738281 105.273438 217.007812 114.003906 216.109375 123.875 C 215.210938 133.746094 206.476562 141.019531 196.609375 140.121094 C 186.734375 139.222656 179.464844 130.492188 180.367188 120.621094 C 181.261719 110.75 189.992188 103.476562 199.863281 104.375 "
41
+ id="path5" />
42
+ <path
43
+ fill-rule="evenodd"
44
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
45
+ fill-opacity="1"
46
+ d="M 187.8125 167.726562 L 189.859375 162.445312 C 193.75 152.398438 194.714844 141.804688 192.703125 131.222656 L 209.796875 132.777344 L 208.488281 136.230469 C 204.910156 145.675781 212.234375 155.988281 225.742188 160.515625 Z M 187.8125 167.726562 "
47
+ id="path6" />
48
+ <path
49
+ fill-rule="evenodd"
50
+ fill="rgb(84.017944%, 41.394043%, 24.273682%)"
51
+ fill-opacity="1"
52
+ d="M 199.226562 131.816406 L 209.796875 132.777344 L 208.488281 136.230469 C 206.773438 140.746094 207.558594 145.464844 210.324219 149.652344 C 200.917969 148.542969 193.816406 143.441406 194.300781 138.023438 C 194.535156 135.5 196.371094 133.339844 199.226562 131.816406 "
53
+ id="path7" />
54
+ <path
55
+ fill-rule="evenodd"
56
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
57
+ fill-opacity="1"
58
+ d="M 174.316406 184.882812 L 166.246094 180.664062 C 148.199219 171.222656 134.660156 154.972656 128.636719 135.515625 L 129.554688 125.46875 C 131.121094 108.273438 137.183594 91.792969 147.140625 77.679688 L 147.667969 86.890625 C 148.597656 103.074219 147.117188 119.3125 143.28125 135.0625 L 152.871094 144.28125 C 163.878906 154.855469 178.804688 160.347656 194.042969 159.433594 Z M 174.316406 184.882812 "
59
+ id="path8" />
60
+ <path
61
+ fill-rule="evenodd"
62
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
63
+ fill-opacity="1"
64
+ d="M 235.613281 152.222656 L 247.527344 158.566406 C 259.570312 164.976562 272.4375 169.710938 285.761719 172.636719 C 306.808594 177.253906 325.097656 190.160156 336.503906 208.4375 C 315.535156 204.746094 306.585938 198.875 288.265625 188.535156 C 275.355469 181.25 271.40625 185.207031 247.5 176.816406 Z M 235.613281 152.222656 "
65
+ id="path9" />
66
+ <path
67
+ fill-rule="evenodd"
68
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
69
+ fill-opacity="1"
70
+ d="M 215.113281 118.582031 C 217.886719 127.25 218.675781 136.480469 217.359375 145.578125 L 215.992188 146.164062 C 213.585938 147.191406 211.183594 147.296875 208.695312 146.480469 L 206.617188 145.796875 C 193.832031 141.617188 184.5625 130.492188 182.757812 117.160156 L 201.109375 108.847656 L 213.507812 115.371094 Z M 215.113281 118.582031 "
71
+ id="path10" />
72
+ <path
73
+ fill-rule="evenodd"
74
+ fill="rgb(79.972839%, 17.663574%, 13.716125%)"
75
+ fill-opacity="1"
76
+ d="M 218.730469 249.058594 L 218.027344 237.359375 C 215.355469 223.597656 205.828125 212.167969 192.785156 207.054688 L 174.316406 184.882812 L 178.929688 176.710938 C 191.269531 154.851562 210.972656 147.449219 235.613281 152.222656 L 250.660156 165.789062 C 257.332031 171.800781 264.367188 176.144531 256.460938 187.15625 L 263.5625 201.792969 C 259.609375 216.898438 269.894531 230.5625 285.425781 238.054688 L 262.363281 257.800781 Z M 218.730469 249.058594 "
77
+ id="path11" />
78
+ <path
79
+ fill-rule="evenodd"
80
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
81
+ fill-opacity="1"
82
+ d="M 186.828125 165.714844 C 195.757812 156 207.113281 151.203125 220.386719 150.859375 L 222.757812 152.433594 C 226.777344 155.105469 229.027344 159.75 228.632812 164.558594 C 228.246094 169.371094 225.269531 173.589844 220.871094 175.570312 C 216.46875 177.554688 211.335938 176.988281 207.472656 174.097656 C 201.410156 169.5625 194.300781 166.683594 186.828125 165.714844 "
83
+ id="path12" />
84
+ <path
85
+ fill-rule="evenodd"
86
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
87
+ fill-opacity="1"
88
+ d="M 285.425781 238.054688 L 315.15625 258.941406 C 345.6875 280.996094 370.167969 310.382812 386.335938 344.390625 L 402.699219 354.328125 C 428.308594 369.886719 445.6875 405.816406 436.390625 452.15625 C 428.410156 425.394531 384.566406 387.691406 365.078125 360.085938 C 330.660156 333.085938 293.558594 310.902344 259.875 284.488281 C 245.722656 318.425781 235.035156 342.453125 206.5 368.351562 L 218.710938 374.300781 C 259.535156 394.199219 265.628906 427.300781 278.648438 465.707031 L 178.699219 394.160156 C 164.363281 383.898438 163.429688 365.464844 170.996094 349.535156 L 218.730469 249.058594 C 235.347656 236.4375 265.21875 233.644531 285.425781 238.054688 "
89
+ id="path13" />
90
+ <path
91
+ fill-rule="evenodd"
92
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
93
+ fill-opacity="1"
94
+ d="M 197.855469 20.035156 C 204.910156 25.296875 205.4375 36.523438 199.03125 45.109375 C 192.625 53.691406 181.714844 56.386719 174.664062 51.121094 C 167.609375 45.859375 167.082031 34.632812 173.488281 26.050781 C 179.890625 17.464844 190.800781 14.773438 197.855469 20.035156 "
95
+ id="path14" />
96
+ <path
97
+ fill-rule="evenodd"
98
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
99
+ fill-opacity="1"
100
+ d="M 199.492188 17.835938 C 207.546875 23.84375 208.144531 36.65625 200.835938 46.453125 C 196.5 52.261719 190.363281 55.707031 184.398438 56.296875 C 180.941406 57.300781 177.675781 58.800781 174.703125 60.734375 C 171.429688 62.851562 168.515625 65.480469 166.074219 68.527344 L 164.636719 67.382812 C 167.207031 64.171875 170.269531 61.410156 173.695312 59.191406 C 175.519531 58.007812 177.457031 56.976562 179.476562 56.109375 C 177.164062 55.683594 174.964844 54.765625 173.027344 53.316406 C 171.09375 51.878906 169.589844 50.042969 168.523438 47.953125 C 168.269531 50.132812 167.835938 52.277344 167.21875 54.359375 C 166.066406 58.273438 164.292969 61.996094 161.945312 65.375 L 160.441406 64.324219 C 162.667969 61.117188 164.355469 57.574219 165.457031 53.835938 C 166.453125 50.453125 166.957031 46.925781 166.945312 43.347656 C 165.78125 37.445312 167.324219 30.539062 171.683594 24.703125 C 178.992188 14.90625 191.441406 11.832031 199.492188 17.835938 "
101
+ id="path15" />
102
+ <path
103
+ fill-rule="evenodd"
104
+ fill="rgb(79.972839%, 17.663574%, 13.716125%)"
105
+ fill-opacity="1"
106
+ d="M 161.136719 63.054688 L 167.074219 67.484375 L 154.425781 84.441406 L 148.484375 80.011719 Z M 161.136719 63.054688 "
107
+ id="path16" />
108
+ <path
109
+ fill-rule="evenodd"
110
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
111
+ fill-opacity="1"
112
+ d="M 145.605469 79.917969 L 147.664062 77 C 149.472656 74.4375 152.226562 72.695312 155.324219 72.160156 C 158.417969 71.625 161.59375 72.34375 164.160156 74.152344 L 159.128906 81.285156 L 156.21875 79.84375 C 153.578125 78.539062 150.550781 78.265625 147.722656 79.070312 Z M 145.605469 79.917969 "
113
+ id="path17" />
114
+ <path
115
+ fill-rule="evenodd"
116
+ fill="rgb(79.972839%, 17.663574%, 13.716125%)"
117
+ fill-opacity="1"
118
+ d="M 229.164062 20.855469 C 232.753906 21.183594 235.40625 24.359375 235.074219 27.949219 C 234.75 31.539062 231.570312 34.1875 227.976562 33.859375 C 224.390625 33.53125 221.746094 30.355469 222.070312 26.761719 C 222.398438 23.175781 225.574219 20.527344 229.164062 20.855469 "
119
+ id="path18" />
120
+ <path
121
+ fill-rule="evenodd"
122
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
123
+ fill-opacity="1"
124
+ d="M 333.578125 206.234375 L 337.019531 207.175781 C 340.046875 208.003906 342.621094 210 344.179688 212.730469 C 345.730469 215.453125 346.140625 218.6875 345.308594 221.71875 L 336.894531 219.410156 L 337.253906 216.183594 C 337.578125 213.257812 336.808594 210.320312 335.089844 207.929688 Z M 333.578125 206.234375 "
125
+ id="path19" />
126
+ <path
127
+ fill-rule="evenodd"
128
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
129
+ fill-opacity="1"
130
+ d="M 190.5 134.824219 L 194.371094 131.015625 C 190.65625 112.046875 209.304688 107.761719 215.175781 118.785156 L 213.835938 114.976562 L 202.992188 105.738281 L 183.570312 108.238281 L 183.847656 108.8125 L 178.691406 123.535156 Z M 190.5 134.824219 "
131
+ id="path20" />
132
+ <path
133
+ fill-rule="evenodd"
134
+ fill="rgb(94.996643%, 56.086731%, 38.415527%)"
135
+ fill-opacity="1"
136
+ d="M 188.988281 128.214844 C 190.355469 126.90625 193.097656 127.558594 195.113281 129.667969 C 197.128906 131.777344 197.652344 134.546875 196.28125 135.855469 C 194.910156 137.164062 192.167969 136.515625 190.152344 134.40625 C 188.136719 132.292969 187.617188 129.523438 188.988281 128.214844 "
137
+ id="path21" />
138
+ <path
139
+ fill-rule="evenodd"
140
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
141
+ fill-opacity="1"
142
+ d="M 433.71875 443.378906 L 431.898438 479.277344 L 442.519531 475.34375 L 446.285156 469.296875 C 451.925781 460.242188 450.914062 448.554688 443.808594 440.597656 L 442.105469 442.972656 C 441.152344 444.304688 439.644531 445.117188 438.011719 445.199219 C 436.378906 445.28125 433.660156 444.550781 433.71875 443.378906 "
143
+ id="path22" />
144
+ <path
145
+ fill-rule="evenodd"
146
+ fill="rgb(17.643738%, 16.757202%, 17.834473%)"
147
+ fill-opacity="1"
148
+ d="M 266.519531 461.027344 L 255.261719 495.164062 L 266.546875 494.179688 L 271.773438 489.34375 C 279.613281 482.109375 281.734375 470.566406 276.980469 461.019531 L 274.714844 462.851562 C 273.441406 463.882812 271.773438 464.273438 270.175781 463.921875 C 268.578125 463.558594 266.152344 462.140625 266.519531 461.027344 "
149
+ id="path23" />
150
+ </svg>
@@ -0,0 +1,11 @@
1
+ # Heroes of computation
2
+
3
+ ## Features
4
+
5
+ - Trivial questions on Heroes of computation
6
+ - Various question types: single choice, multiple choice, fill in the blanks, ordering, matching
7
+ - English version only
8
+
9
+ ## Abstract
10
+
11
+ This quiz features 10 questions on Heroes of computation
@@ -0,0 +1,14 @@
1
+ type: SingleChoice
2
+
3
+ text: "Who is widely considered the first computer programmer for writing algorithms intended to be carried out by Charles Babbage's Analytical Engine?"
4
+
5
+ choices:
6
+ - text: "Ada Lovelace"
7
+ correct: true
8
+ hint: "Correct. Augusta Ada King, Countess of Lovelace, wrote the first algorithm for the Analytical Engine."
9
+ - text: "Alan Turing"
10
+ hint: "Turing came later; think of the first person to write programs for Babbage's machine."
11
+ - text: "Grace Hopper"
12
+ hint: "Hopper was a pioneer of compilers; the first programmer worked with Babbage."
13
+ - text: "Charles Babbage"
14
+ hint: "Babbage designed the machine; someone else wrote the first programs for it."
@@ -0,0 +1,14 @@
1
+ type: SingleChoice
2
+
3
+ text: "Who introduced the concept of the Turing machine, a theoretical device that formalized the notion of algorithm and computation?"
4
+
5
+ choices:
6
+ - text: "Alan Turing"
7
+ correct: true
8
+ hint: "Correct. Alan Turing described the Turing machine in his 1936 paper."
9
+ - text: "John von Neumann"
10
+ hint: "Von Neumann contributed to computer architecture; the machine is named after Turing."
11
+ - text: "Claude Shannon"
12
+ hint: "Shannon worked on information theory; think of the British mathematician who broke Enigma."
13
+ - text: "Alonzo Church"
14
+ hint: "Church developed lambda calculus; the machine is named after another pioneer."
@@ -0,0 +1,14 @@
1
+ type: SingleChoice
2
+
3
+ text: "Who invented the World Wide Web and wrote the first web browser and server in 1989–1990 at CERN?"
4
+
5
+ choices:
6
+ - text: "Tim Berners-Lee"
7
+ correct: true
8
+ hint: "Correct. Tim Berners-Lee invented the WWW and created HTTP, HTML, and the first browser."
9
+ - text: "Vint Cerf"
10
+ hint: "Cerf co-designed TCP/IP; the Web was invented at CERN by a British scientist."
11
+ - text: "Marc Andreessen"
12
+ hint: "Andreessen co-created Mosaic; the Web itself was invented earlier at CERN."
13
+ - text: "Robert Cailliau"
14
+ hint: "Cailliau collaborated on the Web; the principal inventor has a different name."
@@ -0,0 +1,15 @@
1
+ type: MultipleChoice
2
+
3
+ text: "Which of the following people are credited with creating or co-creating a major programming language?"
4
+
5
+ choices:
6
+ - text: "John McCarthy"
7
+ correct: true
8
+ - text: "Grace Hopper"
9
+ correct: true
10
+ - text: "Dennis Ritchie"
11
+ correct: true
12
+ - text: "Charles Babbage"
13
+ hint: "Babbage designed mechanical computers; he did not create a programming language."
14
+ - text: "Claude Shannon"
15
+ hint: "Shannon founded information theory; he did not design a programming language."
@@ -0,0 +1,32 @@
1
+ type: FillIn
2
+
3
+ text: "Fill in the blanks about a pioneer of computing machinery."
4
+
5
+ context: |
6
+
7
+ The S1 Engine was a proposed mechanical general-purpose computer designed by S2 in the 19th century. It was never fully built in his lifetime, but S3 is credited with writing the first algorithm intended for it, making her the first computer programmer.
8
+
9
+ items:
10
+ S1:
11
+ correct: Analytical
12
+ options:
13
+ - Analytical
14
+ - Difference
15
+ - Mechanical
16
+ - Universal
17
+
18
+ S2:
19
+ correct: Charles Babbage
20
+ options:
21
+ - Charles Babbage
22
+ - Alan Turing
23
+ - John von Neumann
24
+ - Ada Lovelace
25
+
26
+ S3:
27
+ correct: Ada Lovelace
28
+ options:
29
+ - Ada Lovelace
30
+ - Grace Hopper
31
+ - Margaret Hamilton
32
+ - Jean Sammet
@@ -0,0 +1,12 @@
1
+ type: Ordering
2
+
3
+ text: "Order these computing pioneers by their year of birth, from earliest to latest."
4
+
5
+ label: Pioneer
6
+
7
+ items:
8
+ - Charles Babbage
9
+ - Ada Lovelace
10
+ - John von Neumann
11
+ - Grace Hopper
12
+ - Alan Turing
@@ -0,0 +1,23 @@
1
+ type: Matching
2
+
3
+ text: "Match each pioneer of computing to one of their key contributions."
4
+
5
+ partial_answer: true
6
+
7
+ labels:
8
+ - Pioneer
9
+ - Contribution
10
+
11
+ left:
12
+ - Ada Lovelace
13
+ - Alan Turing
14
+ - Grace Hopper
15
+ - John von Neumann
16
+ - Claude Shannon
17
+
18
+ right:
19
+ - First algorithm for the Analytical Engine
20
+ - Breaking Enigma code
21
+ - First compiler (A-0) and COBOL
22
+ - Stored-program computer architecture
23
+ - Information theory and digital circuit design
@@ -0,0 +1,14 @@
1
+ type: SingleChoice
2
+
3
+ text: "Who developed the first compiler (the A-0 system) and later led the team that created the COBOL programming language?"
4
+
5
+ choices:
6
+ - text: "Grace Hopper"
7
+ correct: true
8
+ hint: "Correct. Grace Hopper created the first compiler and was central to COBOL."
9
+ - text: "Jean Sammet"
10
+ hint: "Sammet worked on COBOL; the compiler pioneer was a Navy rear admiral."
11
+ - text: "Margaret Hamilton"
12
+ hint: "Hamilton led Apollo software; think of the compiler and COBOL pioneer."
13
+ - text: "Frances Allen"
14
+ hint: "Allen pioneered compiler optimization; the first compiler was by someone else."
@@ -0,0 +1,14 @@
1
+ type: SingleChoice
2
+
3
+ text: "Who founded information theory and showed that Boolean algebra could be used to design digital circuits?"
4
+
5
+ choices:
6
+ - text: "Claude Shannon"
7
+ correct: true
8
+ hint: "Correct. Claude Shannon established information theory and applied Boolean logic to circuits."
9
+ - text: "Alan Turing"
10
+ hint: "Turing worked on computation and cryptography; information theory has a different founder."
11
+ - text: "John von Neumann"
12
+ hint: "Von Neumann worked on architecture and game theory; think of the MIT/Bell Labs pioneer."
13
+ - text: "Norbert Wiener"
14
+ hint: "Wiener founded cybernetics; information theory was founded by another mathematician."
@@ -0,0 +1,23 @@
1
+ type: Matching
2
+
3
+ text: "Match each invention or concept to the pioneer most associated with it."
4
+
5
+ partial_answer: true
6
+
7
+ labels:
8
+ - Invention or concept
9
+ - Pioneer
10
+
11
+ left:
12
+ - Turing machine
13
+ - Stored-program architecture
14
+ - World Wide Web
15
+ - Unix operating system
16
+ - Mouse and hypertext (NLS)
17
+
18
+ right:
19
+ - Alan Turing
20
+ - John von Neumann
21
+ - Tim Berners-Lee
22
+ - Dennis Ritchie and Ken Thompson
23
+ - Douglas Engelbart
@@ -0,0 +1,48 @@
1
+ title: Heroes of the history of computation
2
+
3
+ author: Jordi Petit
4
+
5
+ statement: This quiz tests your knowledge of the pioneers and key figures in the history of computing.
6
+
7
+ shuffle: false
8
+
9
+ questions:
10
+ - title: First computer programmer
11
+ file: q01
12
+ score: 10
13
+
14
+ - title: Turing machine
15
+ file: q02
16
+ score: 10
17
+
18
+ - title: World Wide Web inventor
19
+ file: q03
20
+ score: 10
21
+
22
+ - title: Programming language pioneers
23
+ file: q04
24
+ score: 10
25
+
26
+ - title: Analytical Engine
27
+ file: q05
28
+ score: 10
29
+
30
+ - title: Order computing pioneers by birth year
31
+ file: q06
32
+ score: 10
33
+
34
+ - title: Match pioneers to their contributions
35
+ file: q07
36
+ score: 10
37
+
38
+ - title: Compiler and COBOL
39
+ file: q08
40
+ score: 10
41
+
42
+ - title: Information theory
43
+ file: q09
44
+ score: 10
45
+
46
+ - title: Match inventions to pioneers
47
+ file: q10
48
+ score: 10
@@ -1,5 +1,7 @@
1
1
  title: The answer is 42
2
2
 
3
+ author: Douglas Adams
4
+
3
5
  statement: "What is the answer to life, the universe, and everything?"
4
6
 
5
7
  shuffle: false