Rev 11491 | Rev 11653 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11491 | Rev 11544 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | \integer{givetrue=2} |
29 | \integer{givetrue=2} |
30 | 30 | ||
31 | :Number of "mandatory" wrong answers. |
31 | :Number of "mandatory" wrong answers. |
32 | For example if this number is 2, the first two wrong answers in the list will |
32 | For example if this number is 2, the first two wrong answers in the list will |
33 | always be presented in the generated exercise. |
33 | always be presented in the generated exercise. |
34 | <p> If doubtful, put 0. |
34 | <p> If doubtful, put 0.</p> |
35 | \integer{minfalse=0} |
35 | \integer{minfalse=0} |
36 | 36 | ||
37 | :Text that explains what should be done. |
37 | :Text that explains what should be done. |
38 | $embraced_randitem |
38 | $embraced_randitem |
39 | \text{explain=<p>Here is a model of multiple choice exercise. The answers are presented in random order. |
39 | \text{explain=<p>Here is a model of multiple choice exercise. The answers are presented in random order. |
Line 51... | Line 51... | ||
51 | Second correct answer. |
51 | Second correct answer. |
52 | Third correct answer. |
52 | Third correct answer. |
53 | Fourth correct answer. |
53 | Fourth correct answer. |
54 | } |
54 | } |
55 | 55 | ||
56 | :The |
56 | :The wrong answers -write one per line. |
57 | You can write several here (one per line) for random pickup. |
57 | You can write several here (one per line) for random pickup. |
58 | Avoid very long sentences! No semi-colons are allowed in the sentence. |
58 | Avoid very long sentences! No semi-colons are allowed in the sentence. |
59 | $embraced_randitem |
59 | $embraced_randitem |
60 | \matrix{datafalse= |
60 | \matrix{datafalse= |
61 | First wrong answer. |
61 | First wrong answer. |
Line 73... | Line 73... | ||
73 | must seelct all of them (instead of just any one). If you authorise a partial score |
73 | must seelct all of them (instead of just any one). If you authorise a partial score |
74 | for when only part of the correct answers have been selected, enter the word 'split'. |
74 | for when only part of the correct answers have been selected, enter the word 'split'. |
75 | 75 | ||
76 | \text{option=} |
76 | \text{option=} |
77 | 77 | ||
78 | : |
78 | :General feedback |
79 |
|
79 | This text will be displayed after the learner response, whether it's right or wrong. |
80 | \text{feedback_general=} |
80 | \text{feedback_general=} |
81 | 81 | ||
82 | :Feedback |
82 | :Feedback for a good answer |
83 |
|
83 | This text will be displayed after the learner response, only if it's right. |
84 | \text{ |
84 | \text{feedback_good=} |
85 | 85 | ||
86 | :Feedback |
86 | :Feedback for a bad answer |
87 |
|
87 | This text will be displayed after the learner response, only if it's wrong. |
88 | \text{ |
88 | \text{feedback_bad=} |
89 | 89 | ||
90 | : |
90 | :Embraced random items |
91 | $embraced_randitem |
91 | $embraced_randitem |
92 | \text{accolade=item(1,1 |
92 | \text{accolade=item(1,1 yes, |
93 | 2 |
93 | 2 no)} |
94 | 94 | ||
95 | 95 | ||
96 | :%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%% |
96 | :%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%% |
97 | \text{accolade=wims(word 1 of \accolade)} |
97 | \text{accolade=wims(word 1 of \accolade)} |
98 | 98 | ||
99 | \text{empty=} |
99 | \text{empty=} |
100 | \if{\feedback_general != \empty}{ |
100 | \if{\feedback_general != \empty}{ |
101 | \text{feedback_general=<p class="feedback">\feedback_general</p>} |
101 | \text{feedback_general=<p class="feedback">\feedback_general</p>} |
102 | } |
102 | } |
103 | \if{ |
103 | \if{\feedback_good != \empty}{ |
104 | \text{ |
104 | \text{feedback_good=<p class="feedback good_answer">\feedback_good</p>} |
105 | } |
105 | } |
106 | \if{ |
106 | \if{\feedback_bad != \empty}{ |
107 | \text{ |
107 | \text{feedback_bad=<p class="feedback bad_answer">\feedback_bad</p>} |
108 | } |
108 | } |
109 | 109 | ||
110 | \text{datatrue=wims(nonempty rows \datatrue)} |
110 | \text{datatrue=wims(nonempty rows \datatrue)} |
111 | \text{datafalse=wims(nonempty rows \datafalse)} |
111 | \text{datafalse=wims(nonempty rows \datafalse)} |
112 | \integer{truecnt=rows(\datatrue)} |
112 | \integer{truecnt=rows(\datatrue)} |
Line 138... | Line 138... | ||
138 | \text{explain=\accolade=1 ? wims(embraced randitem \explain)} |
138 | \text{explain=\accolade=1 ? wims(embraced randitem \explain)} |
139 | \text{ans=positionof(1,\ind)} |
139 | \text{ans=positionof(1,\ind)} |
140 | \text{list=item(1..\tot,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z)} |
140 | \text{list=item(1..\tot,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z)} |
141 | \text{anstype=checkbox iswordof \option?checkbox:radio} |
141 | \text{anstype=checkbox iswordof \option?checkbox:radio} |
142 | 142 | ||
143 | :%%%%%%%%%%%%% Now the statement in |
143 | :%%%%%%%%%%%%% Now the statement in HTML. %%%%%%%%%%%%%%%%%%%% |
144 | 144 | ||
145 | ::You don't need to modify this in general. |
145 | ::You don't need to modify this in general. |
146 | 146 | ||
147 | \statement{ |
147 | \statement{ |
148 | <div class="oef_explain">\explain</div> |
148 | <div class="oef_explain">\explain</div> |
149 | \for{i=1 to \tot} |
149 | \for{i=1 to \tot} |
150 | {<p class="oefreply">\embed{reply 1,\i, \list[\i] : \pick[\i;]}</p>} |
150 | {<p class="oefreply">\embed{reply 1,\i, \list[\i] : \pick[\i;]}</p>} |
151 | } |
151 | } |
152 | 152 | ||
153 | :%%%%%%%%%%%%% |
153 | :%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5 |
154 | 154 | ||
155 | \answer{The reply}{\ans;\list}{type=\anstype}{option=\option} |
155 | \answer{The reply}{\ans;\list}{type=\anstype}{option=\option} |
156 | 156 | ||
157 | \feedback{1=1}{\feedback_general} |
157 | \feedback{1=1}{\feedback_general} |
158 | \feedback{\reply1 isitemof \list[\ans]}{ |
158 | \feedback{\reply1 isitemof \list[\ans]}{\feedback_good} |
159 | \feedback{\reply1 notitemof \list[\ans]}{ |
159 | \feedback{\reply1 notitemof \list[\ans]}{\feedback_bad} |