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 27... | Line 27... | ||
27 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
27 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
28 | 28 | ||
29 | :\title{Choix multiple} |
29 | :\title{Choix multiple} |
30 | :\author{XIAO, Gang} |
30 | :\author{XIAO, Gang} |
31 | :\email{xiao@unice.fr} |
31 | :\email{xiao@unice.fr} |
- | 32 | :\credits{} |
|
32 | 33 | ||
33 | :Nombre de choix à présenter. Au plus 10. |
34 | :Nombre de choix à présenter. Au plus 10. |
34 | Vous devez définir suffisamment de choix. Sinon l'exercice affichera seulement ce qui est disponible. |
35 | Vous devez définir suffisamment de choix. Sinon l'exercice affichera seulement ce qui est disponible. |
35 | \integer{tot=5} |
36 | \integer{tot=5} |
36 | 37 | ||
Line 52... | Line 53... | ||
52 | } |
53 | } |
53 | 54 | ||
54 | :Le(s) bon(s) choix, un par ligne. |
55 | :Le(s) bon(s) choix, un par ligne. |
55 | On peut en placer plusieurs (un par ligne) pour tirer au hasard. |
56 | On peut en placer plusieurs (un par ligne) pour tirer au hasard. |
56 | Evitez les phrases trop longues ! Aucun point-virgule dans la phrase. |
57 | Evitez les phrases trop longues ! Aucun point-virgule dans la phrase. |
- | 58 | ||
57 | $embraced_randitem |
59 | $embraced_randitem |
58 | \matrix{datatrue= |
60 | \matrix{datatrue= |
59 | Le bon choix 1. |
61 | Le bon choix 1. |
60 | Le bon choix 2. |
62 | Le bon choix 2. |
61 | Le bon choix 3. |
63 | Le bon choix 3. |
Line 91... | Line 93... | ||
91 | \text{feedback_bon=} |
93 | \text{feedback_bon=} |
92 | 94 | ||
93 | :Feedback en cas de mauvaise réponse |
95 | :Feedback en cas de mauvaise réponse |
94 | Ce texte s'affichera après la réponse de l'apprenant, s'il a coché au moins une mauvaise réponse. |
96 | Ce texte s'affichera après la réponse de l'apprenant, s'il a coché au moins une mauvaise réponse. |
95 | \text{feedback_mauvais=} |
97 | \text{feedback_mauvais=} |
- | 98 | ||
- | 99 | :Mise en aléatoire par des accolades emboitables |
|
- | 100 | $embraced_randitem |
|
- | 101 | \text{accolade=item(1,1 oui, |
|
- | 102 | 2 non)} |
|
- | 103 | ||
96 | 104 | ||
97 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
105 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
- | 106 | \text{accolade=wims(word 1 of \accolade)} |
|
98 | 107 | ||
99 | \text{empty=} |
108 | \text{empty=} |
100 | \if{\feedback_general != \empty}{ |
109 | \if{\feedback_general != \empty}{ |
101 | \text{feedback_general=<p class="feedback">\feedback_general</p>} |
110 | \text{feedback_general=<p class="feedback">\feedback_general</p>} |
102 | } |
111 | } |
Line 132... | Line 141... | ||
132 | \text{ind=wims(makelist 1 for x=1 to \givetrue),wims(makelist 0 for x=1 to \tot-\givetrue)} |
141 | \text{ind=wims(makelist 1 for x=1 to \givetrue),wims(makelist 0 for x=1 to \tot-\givetrue)} |
133 | 142 | ||
134 | \text{sh=shuffle(\tot)} |
143 | \text{sh=shuffle(\tot)} |
135 | \text{ind=item(\sh,\ind)} |
144 | \text{ind=item(\sh,\ind)} |
136 | \text{pick=row(\sh,\pick)} |
145 | \text{pick=row(\sh,\pick)} |
137 | \text{ |
146 | \text{pick=\accolade=1 ? wims(embraced randitem \pick)} |
138 | \text{ |
147 | \text{explain=\accolade=1 ? wims(embraced randitem \explain)} |
139 | \text{ans=positionof(1,\ind)} |
148 | \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)} |
149 | \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} |
150 | \text{anstype=checkbox iswordof \option?checkbox:radio} |
142 | 151 | ||
143 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
152 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |