question-bank-framework 0.4.0 → 0.5.1

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.
@@ -9,7 +9,10 @@
9
9
  "title": "XML/JSON data representation",
10
10
  "prompt": "This question concerns representations of data in XML/JSON.\n\n**(a)** (0.5 mark) Is the XML below well-formed? Explain.\n\n```xml\n<subject>COMP20008</subject>\n```\n",
11
11
  "source": "2019-s1.md",
12
- "tags": ["Data fundamentals", "Data, formats & databases"]
12
+ "tags": [
13
+ "Data fundamentals",
14
+ "Data, formats & databases"
15
+ ]
13
16
  },
14
17
  {
15
18
  "id": "2019-s1-q02",
@@ -21,7 +24,10 @@
21
24
  "title": "Temperature sensor readings, noise and outliers",
22
25
  "prompt": "Explain the difference between readings which are noise and readings which are outliers.\n",
23
26
  "source": "2019-s1.md",
24
- "tags": ["Data preparation", "Data quality & preparation"]
27
+ "tags": [
28
+ "Data preparation",
29
+ "Data quality & preparation"
30
+ ]
25
31
  },
26
32
  {
27
33
  "id": "ioa-001",
@@ -33,7 +39,10 @@
33
39
  "title": "Research question and evidence",
34
40
  "prompt": "What is your research question, and what result would count as evidence?",
35
41
  "source": "assignment-ioa",
36
- "tags": ["Assignment questions", "Justification"]
42
+ "tags": [
43
+ "Assignment questions",
44
+ "Justification"
45
+ ]
37
46
  },
38
47
  {
39
48
  "id": "2019-s1-mc01",
@@ -45,14 +54,31 @@
45
54
  "title": "Well-formed XML",
46
55
  "prompt": "Which of the following XML documents is well-formed?",
47
56
  "options": [
48
- { "id": "a", "text": "`<subject>COMP20008<subject>`" },
49
- { "id": "b", "text": "`<subject>COMP20008</subject>`" },
50
- { "id": "c", "text": "`<subject><topic>COMP20008</subject></topic>`" },
51
- { "id": "d", "text": "`COMP20008`" }
57
+ {
58
+ "id": "a",
59
+ "text": "`<subject>COMP20008<subject>`"
60
+ },
61
+ {
62
+ "id": "b",
63
+ "text": "`<subject>COMP20008</subject>`"
64
+ },
65
+ {
66
+ "id": "c",
67
+ "text": "`<subject><topic>COMP20008</subject></topic>`"
68
+ },
69
+ {
70
+ "id": "d",
71
+ "text": "`COMP20008`"
72
+ }
73
+ ],
74
+ "correctIds": [
75
+ "b"
52
76
  ],
53
- "correctIds": ["b"],
54
77
  "source": "2019-s1.md",
55
- "tags": ["Data fundamentals", "Data, formats & databases"]
78
+ "tags": [
79
+ "Data fundamentals",
80
+ "Data, formats & databases"
81
+ ]
56
82
  },
57
83
  {
58
84
  "id": "2019-s1-mc02",
@@ -64,13 +90,147 @@
64
90
  "title": "Outlier handling",
65
91
  "prompt": "A temperature sensor reports occasional extreme spikes. Which of the following are reasonable outlier-handling steps? **Select all that apply.**",
66
92
  "options": [
67
- { "id": "a", "text": "Remove spikes that are physically impossible for the sensor" },
68
- { "id": "b", "text": "Delete every reading above the mean" },
69
- { "id": "c", "text": "Flag spikes and investigate whether they coincide with known events" },
70
- { "id": "d", "text": "Replace spikes with interpolated values and document the change" }
93
+ {
94
+ "id": "a",
95
+ "text": "Remove spikes that are physically impossible for the sensor"
96
+ },
97
+ {
98
+ "id": "b",
99
+ "text": "Delete every reading above the mean"
100
+ },
101
+ {
102
+ "id": "c",
103
+ "text": "Flag spikes and investigate whether they coincide with known events"
104
+ },
105
+ {
106
+ "id": "d",
107
+ "text": "Replace spikes with interpolated values and document the change"
108
+ }
109
+ ],
110
+ "correctIds": [
111
+ "a",
112
+ "c",
113
+ "d"
71
114
  ],
72
- "correctIds": ["a", "c", "d"],
73
115
  "source": "2019-s1.md",
74
- "tags": ["Data preparation", "Data quality & preparation"]
116
+ "tags": [
117
+ "Data preparation",
118
+ "Data quality & preparation"
119
+ ]
120
+ },
121
+ {
122
+ "id": "2019-s1-num01",
123
+ "kind": "numerical",
124
+ "number": 5,
125
+ "title": "Mean of a sample",
126
+ "prompt": "A sample contains the values 4, 8, 15, 16 and 23. What is their mean?",
127
+ "numeric": {
128
+ "value": 13.2,
129
+ "tolerance": 0.01
130
+ },
131
+ "tags": [
132
+ "Data fundamentals"
133
+ ],
134
+ "year": 2019,
135
+ "semester": "S1",
136
+ "marks": 2,
137
+ "source": "2019-s1.md"
138
+ },
139
+ {
140
+ "id": "2019-s1-match01",
141
+ "kind": "matching",
142
+ "number": 6,
143
+ "title": "Match the data format",
144
+ "prompt": "Match each description to the data format it best describes.",
145
+ "options": [
146
+ {
147
+ "id": "a",
148
+ "text": "CSV"
149
+ },
150
+ {
151
+ "id": "b",
152
+ "text": "JSON"
153
+ },
154
+ {
155
+ "id": "c",
156
+ "text": "XML"
157
+ },
158
+ {
159
+ "id": "d",
160
+ "text": "Parquet"
161
+ }
162
+ ],
163
+ "items": [
164
+ {
165
+ "id": "1",
166
+ "text": "Nested key–value objects, common in web APIs",
167
+ "correctId": "b"
168
+ },
169
+ {
170
+ "id": "2",
171
+ "text": "Plain-text rows with a delimiter",
172
+ "correctId": "a"
173
+ },
174
+ {
175
+ "id": "3",
176
+ "text": "Tagged elements that must be well-formed",
177
+ "correctId": "c"
178
+ }
179
+ ],
180
+ "tags": [
181
+ "Data fundamentals",
182
+ "Data, formats & databases"
183
+ ],
184
+ "year": 2019,
185
+ "semester": "S1",
186
+ "marks": 2,
187
+ "source": "2019-s1.md"
188
+ },
189
+ {
190
+ "id": "2019-s1-drop01",
191
+ "kind": "dropdown",
192
+ "number": 7,
193
+ "title": "Fill in the blanks: outliers",
194
+ "prompt": "Fill in the blanks.",
195
+ "blanks": [
196
+ {
197
+ "id": "1",
198
+ "label": "A reading that is far from the rest of the data is an",
199
+ "options": [
200
+ {
201
+ "id": "a",
202
+ "text": "outlier"
203
+ },
204
+ {
205
+ "id": "b",
206
+ "text": "imputation"
207
+ }
208
+ ],
209
+ "correctId": "a"
210
+ },
211
+ {
212
+ "id": "2",
213
+ "label": "Random error in measurements is called",
214
+ "options": [
215
+ {
216
+ "id": "a",
217
+ "text": "bias"
218
+ },
219
+ {
220
+ "id": "b",
221
+ "text": "noise"
222
+ }
223
+ ],
224
+ "correctId": "b"
225
+ }
226
+ ],
227
+ "tags": [
228
+ "Data preparation",
229
+ "Data quality & preparation"
230
+ ],
231
+ "year": 2019,
232
+ "semester": "S1",
233
+ "marks": 2,
234
+ "source": "2019-s1.md"
75
235
  }
76
236
  ]