MDL-34808 load sample xml file from fixtures in tests
[moodle.git] / question / format / examview / tests / fixtures / examview_sample.xml
1 <?xml version='1.0' encoding='utf-8' standalone='yes'?>
2 <examview type='test' platform='Windows' app-version='4.0.2'>
3     <header>
4         <title>Moodle Example</title>
5         <version>A</version>
6     </header>
7     <font-table>
8         <font-entry number='1'>
9             <charset>ansi</charset>
10             <name>Times New Roman</name>
11             <pitch>variable</pitch>
12             <family>roman</family>
13         </font-entry>
14     </font-table>
15     <preferences>
16         <show>
17             <show-answer value='yes'/>
18             <show-difficulty value='yes'/>
19             <show-reference value='yes'/>
20             <show-text-objective value='yes'/>
21             <show-state-objective value='yes'/>
22             <show-topic value='yes'/>
23             <show-keywords value='yes'/>
24             <show-misc value='yes'/>
25             <show-notes value='yes'/>
26             <show-rationale value='yes'/>
27         </show>
28         <leave-answer-space>
29             <tf value='yes'/>
30             <mtf value='yes'/>
31             <mc value='yes'/>
32             <yn value='yes'/>
33             <nr value='no'/>
34             <co value='no'/>
35             <ma value='yes'/>
36             <sa value='no'/>
37             <pr value='no'/>
38             <es value='no'/>
39             <ca value='no'/>
40             <ot value='no'/>
41         </leave-answer-space>
42         <question-type-order value='tf,mtf,mc,yn,nr,co,ma,sa,pr,es,ca,ot'/>
43         <section-page-break value='no'/>
44         <bi-display-mode value='mc'/>
45         <tf-show-choices value='no'/>
46         <mc-conserve-paper value='no'/>
47         <mc-choice-sequence value='abcde'/>
48         <show-answer-lines value='no'/>
49         <question-numbering value='continuous'/>
50         <answer-style template='a.' style='none'/>
51         <number-style template='1.' style='none'/>
52         <max-question-id value='9'/>
53         <max-narrative-id value='0'/>
54         <max-group-id value='1'/>
55         <default-font target='title'>
56             <number>1</number>
57             <size>13</size>
58             <style>bold</style>
59             <text-rgb>#000000</text-rgb>
60         </default-font>
61         <default-font target='sectiontitle'>
62             <number>1</number>
63             <size>11</size>
64             <style>bold</style>
65             <text-rgb>#000000</text-rgb>
66         </default-font>
67         <default-font target='questionnumber'>
68             <number>1</number>
69             <size>11</size>
70             <text-rgb>#000000</text-rgb>
71         </default-font>
72         <default-font target='answerchoice'>
73             <number>1</number>
74             <size>11</size>
75             <text-rgb>#000000</text-rgb>
76         </default-font>
77         <default-font target='newquestiondefault'>
78             <number>1</number>
79             <size>11</size>
80             <text-rgb>#000000</text-rgb>
81         </default-font>
82     </preferences>
83     <test-header page='first'><para tabs='R10440'><b>Name: ________________________  Class: ___________________  Date: __________    ID: <field field-type='version'/></b></para></test-header>
84     <test-header page='subsequent'><para tabs='R10440'><b>Name: ________________________    ID: <field field-type='version'/></b></para></test-header>
85     <test-footer page='first'><para justify='center'><field field-type='pageNumber'/>
86 </para></test-footer>
87     <test-footer page='subsequent'><para justify='center'><field field-type='pageNumber'/>
88 </para></test-footer>
89     <instruction type='tf'><b>True/False</b><font size='10'>
90 </font><i>Indicate whether the sentence or statement is true or false.</i></instruction>
91     <instruction type='mtf'><b>Modified True/False</b><font size='10'>
92 </font><i>Indicate whether the sentence or statement is true or false.  If false, change the identified word or phrase to make the sentence or statement true.</i></instruction>
93     <instruction type='mc'><b>Multiple Choice</b><font size='10'>
94 </font><i>Identify the letter of the choice that best completes the statement or answers the question.</i></instruction>
95     <instruction type='yn'><b>Yes/No</b><font size='10'>
96 </font><i>Indicate whether you agree with the sentence or statement.</i></instruction>
97     <instruction type='nr'><b>Numeric Response</b></instruction>
98     <instruction type='co'><b>Completion</b><font size='10'>
99 </font><i>Complete each sentence or statement.</i></instruction>
100     <instruction type='ma'><b>Matching</b></instruction>
101     <instruction type='sa'><b>Short Answer</b></instruction>
102     <instruction type='pr'><b>Problem</b></instruction>
103     <instruction type='es'><b>Essay</b></instruction>
104     <instruction type='ca'><b>Case</b></instruction>
105     <instruction type='ot'><b>Other</b></instruction>
106     <question type='tf' question-id='1' bank-id='0'>
107         <text>42 is the Absolute Answer to everything.</text>
108         <rationale>42 is the Ultimate Answer.</rationale>
109         <answer>F</answer>
110     </question>
111     <question type='mc' question-id='2' bank-id='0'>
112         <text><font size='10'>What's between orange and green in the spectrum?</font></text>
113         <choices columns='2'>
114             <choice-a><font size='10'>red</font></choice-a>
115             <choice-b><font size='10'>yellow</font></choice-b>
116             <choice-c><font size='10'>blue</font></choice-c>
117         </choices>
118         <answer>B</answer>
119     </question>
120     <question type='nr' question-id='3' bank-id='0'>
121         <text>This is a numeric response question.  How much is 12 * 2?</text>
122         <answer>24</answer>
123         <info>
124             <answer-space>-1</answer-space>
125         </info>
126     </question>
127     <matching-group group-id='1' bank-id='0' name='Matching 1'>
128         <text>Classify the animals.</text>
129         <choices columns='2'>
130             <choice-a>insect</choice-a>
131             <choice-b>amphibian</choice-b>
132             <choice-c>mammal</choice-c>
133         </choices>
134     </matching-group>
135     <question type='ma' question-id='6' bank-id='0' group='Matching 1'>
136         <text>cat</text>
137         <answer>C</answer>
138     </question>
139     <question type='ma' question-id='7' bank-id='0' group='Matching 1'>
140         <text>frog</text>
141         <answer>B</answer>
142     </question>
143     <question type='ma' question-id='8' bank-id='0' group='Matching 1'>
144         <text>newt</text>
145         <answer>B</answer>
146     </question>
147     <question type='sa' question-id='5' bank-id='0'>
148         <text>Name an amphibian: __________.</text>
149         <answer>frog</answer>
150         <info>
151             <answer-space>-1</answer-space>
152         </info>
153     </question>
154     <question type='es' question-id='4' bank-id='0'>
155         <text>How are you?</text>
156         <answer>Examview answer for essay questions will be imported as informations for graders.</answer>
157         <info>
158             <answer-space>-1</answer-space>
159         </info>
160     </question>
161 </examview>