a b/AWS/quizes/Quiz_Test.json
1
[
2
    {
3
        "question": "Choose all of the following that can be included in Jupyter notebooks?",
4
        "type": "many_choice",
5
        "answers": [
6
            {
7
                "answer": "Text and graphics output from Python",
8
                "correct": true,
9
                "feedback": "Correct."
10
            },
11
            {
12
                "answer": "Typeset mathematics",
13
                "correct": true,
14
                "feedback": "Correct."
15
            },
16
            {
17
                "answer": "Python executable code",
18
                "correct": true,
19
                "feedback": "Correct."
20
            },
21
            {
22
                "answer": "Formatted text",
23
                "correct": true,
24
                "feedback": "Correct."
25
            },
26
            {
27
                "answer": "Live snakes via Python",
28
                "correct": false,
29
                "feedback": "I hope not."
30
            }
31
        ]
32
    },
33
    {
34
        "question": "Which of these are used to create formatted text in Jupyter notebooks?",
35
        "type": "multiple_choice",
36
        "answers": [
37
            {
38
                "answer": "Wiki markup",
39
                "correct": false,
40
                "feedback": "False."
41
            },
42
            {
43
                "answer": "SVG",
44
                "correct": false,
45
                "feedback": "False."
46
            },
47
            {
48
                "answer": "Markdown",
49
                "correct": true,
50
                "feedback": "Correct."
51
            },
52
            {
53
                "answer": "Rich Text",
54
                "correct": false,
55
                "feedback": "False."
56
            }
57
        ]
58
    },
59
    {
60
        "question": "Enter the value of $\\pi$ to 2 decimal places.",
61
        "type": "numeric",
62
        "answers": [
63
            {
64
                "type": "value",
65
                "value": 3.14,
66
                "correct": true,
67
                "feedback": "Correct."
68
            },
69
            {
70
                "type": "range",
71
                "range": [
72
                    3.142857,
73
                    3.142858
74
                ],
75
                "correct": true,
76
                "feedback": "True to 2 decimal places, but you know $\\pi$ is not really 22/7, right?"
77
            },
78
            {
79
                "type": "range",
80
                "range": [
81
                    -100000000,
82
                    0
83
                ],
84
                "correct": false,
85
                "feedback": "$\\pi$ is the AREA of a circle of radius 1. Try again."
86
            },
87
            {
88
                "type": "default",
89
                "feedback": "$\\pi$ is the area of a circle of radius 1. Try again."
90
            }
91
        ]
92
    },
93
    {
94
        "question": "Enter the value of $\\pi$ to 2 decimal places.",
95
        "type": "numeric",
96
        "precision": 2,
97
        "answers": [
98
            {
99
                "type": "value",
100
                "value": 3.14,
101
                "correct": true,
102
                "feedback": "Correct."
103
            },
104
            {
105
                "type": "range",
106
                "range": [
107
                    3.142857,
108
                    3.142858
109
                ],
110
                "correct": true,
111
                "feedback": "True to 2 decimal places, but you know $\\pi$ is not really 22/7, right?"
112
            },
113
            {
114
                "type": "range",
115
                "range": [
116
                    -100000000,
117
                    0
118
                ],
119
                "correct": false,
120
                "feedback": "$\\pi$ is the AREA of a circle of radius 1. Try again."
121
            },
122
            {
123
                "type": "default",
124
                "feedback": "$\\pi$ is the area of a circle of radius 1. Try again."
125
            }
126
        ]
127
    },
128
    {
129
        "question": "Determine the output of the following Python code:",
130
        "code": "a=\"1\"\nb=\"2\"\nprint(a+b)",
131
        "type": "multiple_choice",
132
        "answers": [
133
            {
134
                "answer": "1",
135
                "correct": false,
136
                "feedback": "No. When strings are operated on by +, they are concatenated."
137
            },
138
            {
139
                "answer": "2",
140
                "correct": false,
141
                "feedback": "No. When strings are operated on by +, they are concatenated."
142
            },
143
            {
144
                "answer": "3",
145
                "correct": false,
146
                "feedback": "No. When strings are operated on by +, they are concatenated."
147
            },
148
            {
149
                "answer": "12",
150
                "correct": true,
151
                "feedback": "Yes. The + operator will concatenate the strings \"1\" and \"2\"."
152
            },
153
            {
154
                "answer": "error",
155
                "correct": false,
156
                "feedback": "No. The + operator for strings performs string concatenation."
157
            }
158
        ]
159
    },
160
    {
161
        "question": "The variable mylist is a Python list. Choose which code snippet will append the item 3 to mylist.",
162
        "type": "multiple_choice",
163
        "answers": [
164
            {
165
                "code": "mylist+=3",
166
                "correct": false
167
            },
168
            {
169
                "code": "mylist+=[3]",
170
                "correct": true
171
            },
172
            {
173
                "code": "mylist+={3}",
174
                "correct": false
175
            }
176
        ]
177
    },
178
    {
179
        "question": "Which of these is the ratio of a circle's circumference to its diameter?",
180
        "type": "multiple_choice",
181
        "answers": [
182
            {
183
                "answer": "$\\pi$",
184
                "correct": true,
185
                "feedback": "Correct."
186
            },
187
            {
188
                "answer": "$\\frac{22}{7}$",
189
                "correct": false,
190
                "feedback": "$\\frac{22}{7}$ is only an approximation to the true value."
191
            },
192
            {
193
                "answer": "3",
194
                "correct": false,
195
                "feedback": "This is a crude approximation to the true value."
196
            },
197
            {
198
                "answer": "$\\tau$",
199
                "correct": false,
200
                "feedback": "True for the ratio of the circle's circumference to its radius, not diameter."
201
            }
202
        ]
203
    }
204
]