[cb2392]: / GoogleCloud / quizes / Quiz_Test.json

Download this file

204 lines (204 with data), 6.3 kB

  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
[
{
"question": "Choose all of the following that can be included in Jupyter notebooks?",
"type": "many_choice",
"answers": [
{
"answer": "Text and graphics output from Python",
"correct": true,
"feedback": "Correct."
},
{
"answer": "Typeset mathematics",
"correct": true,
"feedback": "Correct."
},
{
"answer": "Python executable code",
"correct": true,
"feedback": "Correct."
},
{
"answer": "Formatted text",
"correct": true,
"feedback": "Correct."
},
{
"answer": "Live snakes via Python",
"correct": false,
"feedback": "I hope not."
}
]
},
{
"question": "Which of these are used to create formatted text in Jupyter notebooks?",
"type": "multiple_choice",
"answers": [
{
"answer": "Wiki markup",
"correct": false,
"feedback": "False."
},
{
"answer": "SVG",
"correct": false,
"feedback": "False."
},
{
"answer": "Markdown",
"correct": true,
"feedback": "Correct."
},
{
"answer": "Rich Text",
"correct": false,
"feedback": "False."
}
]
},
{
"question": "Enter the value of $\\pi$ to 2 decimal places.",
"type": "numeric",
"answers": [
{
"type": "value",
"value": 3.14,
"correct": true,
"feedback": "Correct."
},
{
"type": "range",
"range": [
3.142857,
3.142858
],
"correct": true,
"feedback": "True to 2 decimal places, but you know $\\pi$ is not really 22/7, right?"
},
{
"type": "range",
"range": [
-100000000,
0
],
"correct": false,
"feedback": "$\\pi$ is the AREA of a circle of radius 1. Try again."
},
{
"type": "default",
"feedback": "$\\pi$ is the area of a circle of radius 1. Try again."
}
]
},
{
"question": "Enter the value of $\\pi$ to 2 decimal places.",
"type": "numeric",
"precision": 2,
"answers": [
{
"type": "value",
"value": 3.14,
"correct": true,
"feedback": "Correct."
},
{
"type": "range",
"range": [
3.142857,
3.142858
],
"correct": true,
"feedback": "True to 2 decimal places, but you know $\\pi$ is not really 22/7, right?"
},
{
"type": "range",
"range": [
-100000000,
0
],
"correct": false,
"feedback": "$\\pi$ is the AREA of a circle of radius 1. Try again."
},
{
"type": "default",
"feedback": "$\\pi$ is the area of a circle of radius 1. Try again."
}
]
},
{
"question": "Determine the output of the following Python code:",
"code": "a=\"1\"\nb=\"2\"\nprint(a+b)",
"type": "multiple_choice",
"answers": [
{
"answer": "1",
"correct": false,
"feedback": "No. When strings are operated on by +, they are concatenated."
},
{
"answer": "2",
"correct": false,
"feedback": "No. When strings are operated on by +, they are concatenated."
},
{
"answer": "3",
"correct": false,
"feedback": "No. When strings are operated on by +, they are concatenated."
},
{
"answer": "12",
"correct": true,
"feedback": "Yes. The + operator will concatenate the strings \"1\" and \"2\"."
},
{
"answer": "error",
"correct": false,
"feedback": "No. The + operator for strings performs string concatenation."
}
]
},
{
"question": "The variable mylist is a Python list. Choose which code snippet will append the item 3 to mylist.",
"type": "multiple_choice",
"answers": [
{
"code": "mylist+=3",
"correct": false
},
{
"code": "mylist+=[3]",
"correct": true
},
{
"code": "mylist+={3}",
"correct": false
}
]
},
{
"question": "Which of these is the ratio of a circle's circumference to its diameter?",
"type": "multiple_choice",
"answers": [
{
"answer": "$\\pi$",
"correct": true,
"feedback": "Correct."
},
{
"answer": "$\\frac{22}{7}$",
"correct": false,
"feedback": "$\\frac{22}{7}$ is only an approximation to the true value."
},
{
"answer": "3",
"correct": false,
"feedback": "This is a crude approximation to the true value."
},
{
"answer": "$\\tau$",
"correct": false,
"feedback": "True for the ratio of the circle's circumference to its radius, not diameter."
}
]
}
]