Rev 5907 | Rev 8002 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5907 | Rev 6132 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
23 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
24 | 24 | ||
25 | :\title{Vrai/faux multiple} |
25 | :\title{Vrai/faux multiple} |
26 | :\author{XIAO, Gang} |
26 | :\author{XIAO, Gang} |
27 | :\email{xiao@unice.fr} |
27 | :\email{xiao@unice.fr} |
- | 28 | :\credits{} |
|
28 | 29 | ||
29 | :Nombre de phrases à présenter. |
30 | :Nombre de phrases à présenter. |
30 | \integer{tot=4} |
31 | \integer{tot=4} |
31 | 32 | ||
32 | :Minimum de phrases vraies dans chaque exercice présenté. Au moins 1. |
33 | :Minimum de phrases vraies dans chaque exercice présenté. Au moins 1. |
Line 83... | Line 84... | ||
83 | \text{option=split} |
84 | \text{option=split} |
84 | 85 | ||
85 | :Le texte qui explique ce qu'il faut faire. |
86 | :Le texte qui explique ce qu'il faut faire. |
86 | $embraced_randitem |
87 | $embraced_randitem |
87 | \text{explain=Parmi les affirmations suivantes, lesquelles sont vraies ? Marquez-les.} |
88 | \text{explain=Parmi les affirmations suivantes, lesquelles sont vraies ? Marquez-les.} |
- | 89 | ||
- | 90 | :Mise en aléatoire par des accolades emboitables |
|
- | 91 | $embraced_randitem |
|
- | 92 | \text{accolade=item(1,1 oui, |
|
- | 93 | 2 non)} |
|
88 | 94 | ||
89 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
95 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
90 | 96 | ||
- | 97 | \text{accolade=wims(word 1 of \accolade)} |
|
91 | \text{datatrue=wims(nonempty rows \datatrue)} |
98 | \text{datatrue=wims(nonempty rows \datatrue)} |
92 | \text{datafalse=wims(nonempty rows \datafalse)} |
99 | \text{datafalse=wims(nonempty rows \datafalse)} |
93 | \integer{truecnt=rows(\datatrue)} |
100 | \integer{truecnt=rows(\datatrue)} |
94 | \integer{falsecnt=rows(\datafalse)} |
101 | \integer{falsecnt=rows(\datafalse)} |
95 | \integer{tot=\tot > min(\truecnt,\falsecnt)?min(\truecnt,\falsecnt)} |
102 | \integer{tot=\tot > min(\truecnt,\falsecnt)?min(\truecnt,\falsecnt)} |
Line 107... | Line 114... | ||
107 | \text{ind=wims(makelist 1 for x=1 to \truepick),wims(makelist 0 for x=1 to \tot-\truepick)} |
114 | \text{ind=wims(makelist 1 for x=1 to \truepick),wims(makelist 0 for x=1 to \tot-\truepick)} |
108 | 115 | ||
109 | \text{sh=shuffle(\tot)} |
116 | \text{sh=shuffle(\tot)} |
110 | \text{ind=item(\sh,\ind)} |
117 | \text{ind=item(\sh,\ind)} |
111 | \text{pick=row(\sh,\pick)} |
118 | \text{pick=row(\sh,\pick)} |
112 | \text{ |
119 | \text{pick=\accolade=1 ? wims(embraced randitem \pick)} |
113 | \text{ans=positionof(1,\ind)} |
120 | \text{ans=positionof(1,\ind)} |
114 | \text{list=wims(values x for x=1 to \tot)} |
121 | \text{list=wims(values x for x=1 to \tot)} |
115 | \text{ |
122 | \text{explain=\accolade=1 ? wims(embraced randitem \explain)} |
116 | 123 | ||
117 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
124 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
118 | 125 | ||
119 | ::Vous n'avez pas besoin de modifier ceci en général. |
126 | ::Vous n'avez pas besoin de modifier ceci en général. |
120 | 127 | ||
121 | \statement{\explain |
128 | \statement{\explain |
122 | 129 | ||
123 |
|
130 | <table class="wimsnoborder"> |
124 | \for{i=1 to \tot}{ |
131 | \for{i=1 to \tot}{ |
125 | <tr><td nowrap>\embed{reply 1,\i}. </td> |
132 | <tr><td nowrap>\embed{reply 1,\i}. </td> |
126 | <td> \pick[\i;]</td></tr> |
133 | <td> \pick[\i;]</td></tr> |
127 | } |
134 | } |
128 | </table |
135 | </table> |
129 | } |
136 | } |
130 | 137 | ||
131 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
138 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
132 | 139 | ||
133 | \answer{La réponse}{\ans;\list}{type=checkbox}{option=\option} |
140 | \answer{La réponse}{\ans;\list}{type=checkbox}{option=\option} |