-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquiz.xml
More file actions
82 lines (77 loc) · 2.9 KB
/
quiz.xml
File metadata and controls
82 lines (77 loc) · 2.9 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
<?xml version="1.0" encoding="UTF-8"?>
<quiz>
<!-- Question 1 -->
<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 2 -->
<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>
<!-- Additional questions should follow the same pattern. -->
<!-- True or False Question -->
<question type="truefalse">
<name>
<text>The variable name Class is recommended for use in Python.</text>
</name>
<questiontext format="html">
<text><![CDATA[<p>True or False: The variable name <em>Class</em> is recommended for use in Python.</p>]]></text>
</questiontext>
<answer fraction="0">
<text>True</text>
</answer>
<answer fraction="100">
<text>False</text>
</answer>
<feedback format="html">
<text><![CDATA[<p>It is not recommended because class is a keyword in Python, even though capitalization differs, it's best to avoid confusion.</p>]]></text>
</feedback>
</question>
<!-- Short Answer Question -->
<question type="shortanswer">
<name>
<text>What is dynamic typing in Python?</text>
</name>
<questiontext format="html">
<text><![CDATA[<p>What is dynamic typing in Python?</p>]]></text>
</questiontext>
<answer fraction="100">
<text>Dynamic typing means that the Python interpreter infers the type of a variable at runtime. You do not need to declare the type of a variable when you create it, and the type can change after it is set.</text>
</answer>
</question>
<!-- Add additional short answer questions here. -->
</quiz>