-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquiz_xml.tmbl
More file actions
115 lines (115 loc) · 3.97 KB
/
quiz_xml.tmbl
File metadata and controls
115 lines (115 loc) · 3.97 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
<?xml version="1.0" encoding="UTF-8"?>
<quiz>
<!-- Multiple Choice Questions -->
<question type="multichoice">
<name>
<text>What is a variable in Python?</text>
</name>
<questiontext format="html">
<text><![CDATA[<p>What is a variable in Python?</p>]]></text>
</questiontext>
<answer fraction="0">
<text>A) A type of Python function</text>
</answer>
<answer fraction="100">
<text>B) A reserved memory location to store values</text>
</answer>
<answer fraction="0">
<text>C) A specific data type</text>
</answer>
<answer fraction="0">
<text>D) A Python library</text>
</answer>
</question>
<question type="multichoice">
<name>
<text>Which of the following is a valid variable name in Python?</text>
</name>
<questiontext format="html">
<text><![CDATA[<p>Which of the following is a valid variable name in Python?</p>]]></text>
</questiontext>
<answer fraction="0">
<text>A) 1_variable</text>
</answer>
<answer fraction="100">
<text>B) variable1</text>
</answer>
<answer fraction="0">
<text>C) variable-1</text>
</answer>
<answer fraction="0">
<text>D) variable@1</text>
</answer>
</question>
<question type="multichoice">
<name>
<text>Which data type would you use to represent a person's age in years?</text>
</name>
<questiontext format="html">
<text><![CDATA[<p>Which data type would you use to represent a person's age in years?</p>]]></text>
</questiontext>
<answer fraction="0">
<text>A) String</text>
</answer>
<answer fraction="0">
<text>B) Boolean</text>
</answer>
<answer fraction="100">
<text>C) Integer</text>
</answer>
<answer fraction="0">
<text>D) Float</text>
</answer>
</question>
<question type="multichoice">
<name>
<text>What does the following line of code do? name = "Alice"</text>
</name>
<questiontext format="html">
<text><![CDATA[<p>What does the following line of code do? <code>name = "Alice"</code></p>]]></text>
</questiontext>
<answer fraction="0">
<text>A) Compares a variable name to the string "Alice"</text>
</answer>
<answer fraction="100">
<text>B) Sets the variable name equal to the string "Alice"</text>
</answer>
<answer fraction="0">
<text>C) Declares a string variable without initializing it</text>
</answer>
<answer fraction="0">
<text>D) Outputs the string "Alice" to the console</text>
</answer>
</question>
<question type="multichoice">
<name>
<text>Which of the following is a Boolean data type in Python?</text>
</name>
<questiontext format="html">
<text><![CDATA[<p>Which of the following is a Boolean data type in Python?</p>]]></text>
</questiontext>
<answer fraction="0">
<text>A) "True"</text>
</answer>
<answer fraction="0">
<text>B) 'False'</text>
</answer>
<answer fraction="100">
<text>C) True</text>
</answer>
<answer fraction="0">
<text>D) "true"</text>
</answer>
</question>
<question type="multichoice">
<name>
<text>Which operator would you use to assign a value to a variable?</text>
</name>
<questiontext format="html">
<text><![CDATA[<p>Which operator would you use to assign a value to a variable?</p>]]></text>
</questiontext>
<answer fraction="0">
<text>A) ==</text>
</answer>
<answer fraction="100">
<text>B