Rev 7169 | Rev 11375 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | type=datalist |
2 | textarea="data" |
||
3 | |||
4 | :Questions mixtes incorporées dans un texte aléatoire. |
||
5 | |||
3426 | bpr | 6 | Cet exercice présente des textes où des champs de réponse sont insérés. |
23 | reyssat | 7 | <p> |
8 | Pour construire un exercice avec ce modèle, il suffit d'entrer les textes. |
||
9 | Une syntaxe facile permet d'incorporer les champs de choix multiples et les |
||
10 | réponses libres dans les textes. |
||
11 | <p> |
||
8002 | bpr | 12 | Auteur du modèle : Gang Xiao <qualite@wimsedu.info> |
23 | reyssat | 13 | |
14 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
15 | |||
2880 | bpr | 16 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
23 | reyssat | 17 | (Ce sont les lignes qui commencent par un ':'.) |
18 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
19 | |||
20 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
||
21 | |||
5129 | bpr | 22 | :\title{Textes aléatoires à trous généralisés} |
5147 | bpr | 23 | :\author{XIAO, Gang} |
8002 | bpr | 24 | :\email{qualite@wimsedu.info} |
23 | reyssat | 25 | |
26 | :Données principales. |
||
27 | Définir une question par ligne, et séparer les lignes |
||
3426 | bpr | 28 | par un point-virgule. (Donc les textes eux-mêmes ne peuvent pas contenir |
23 | reyssat | 29 | des point-virgules.) <p> |
8002 | bpr | 30 | Les questions à poser doivent être mises entre une paire de |
3426 | bpr | 31 | double-points d'interrogation "??". |
23 | reyssat | 32 | <p> |
33 | La question est un choix multiple s'il contient plusieurs objets séparés |
||
5112 | bpr | 34 | par des virgules, la bonne réponse étant en premier. Si la question (entre ??) ne |
35 | contient qu'un objet, c'est alors une réponse libre, numérique s'il s'agit d'un |
||
36 | nombre ou textuel sinon. |
||
23 | reyssat | 37 | <p> |
5112 | bpr | 38 | On peut poser jusqu'à 20 questions dans une même phrase. |
4248 | bpr | 39 | Si plusieurs réponses correctes sont possibles dans une réponse libre, séparer |
5907 | bpr | 40 | toutes les bonnes réponses (synonymes) par un trait vertical <span class="tt wims_code_words">|</span>. |
5112 | bpr | 41 | (l'analyse est alors faite par symtext pour les experts). |
23 | reyssat | 42 | <p> |
43 | $embraced_randitem |
||
44 | \text{data= |
||
45 | Le début officiel de la Seconde Guerre Mondiale est marqué par |
||
3426 | bpr | 46 | ??la déclaration de guerre,l'offensive?? de |
23 | reyssat | 47 | ??la Grande Bretagne et la France,la France,la Grande Bretagne, |
48 | l'Allemagne,l'Union Soviétique?? |
||
3426 | bpr | 49 | contre ??l'Allemagne,La Pologne,l'Union Soviétique,la France??.; |
23 | reyssat | 50 | |
51 | La Seconde Guerre Mondiale s'est déroulée entre ??1939?? et |
||
52 | ??1945??.; |
||
53 | |||
54 | ??La Grande Bretagne et la France ont,La France a,La Grande Bretagne a, |
||
55 | Les Etats-Unis ont,L'Union Soviétique a?? déclaré la guerre |
||
3426 | bpr | 56 | contre l'Allemagne en ??1939?? à la suite de l'invasion de |
23 | reyssat | 57 | ??la Pologne?? par cette dernière.; |
58 | |||
59 | Pendant la Seconde Guerre Mondiale, l'Espagne sous |
||
60 | ??Francisco Franco|[F.|Francisco|] Franco?? est un pays |
||
61 | ??neutre,axe,allié,envahi??.; |
||
62 | |||
63 | ??Après avoir battu,Avant d'attaquer?? la France, |
||
3426 | bpr | 64 | {l'Allemagne,Hitler,l'Allemagne Nazie} |
65 | a lancé une attaque surprise contre l'URSS en |
||
23 | reyssat | 66 | ??décembre,{novembre,octobre},{septembre,août,juillet},{juin,mai,avril},{mars,février,janvier}?? |
67 | ??1940??, sous le nom {du plan,de l'opération} ??Barbarossa??. |
||
68 | } |
||
69 | |||
70 | :Texte affiché avant la question. Balises html admises. Peut être vide. |
||
71 | $embraced_randitem |
||
7169 | bpr | 72 | \text{pre=<p>Remplissez les cases : </p>} |
23 | reyssat | 73 | |
74 | :Texte affiché après la question. Balises html admises. Peut être vide. |
||
75 | $embraced_randitem |
||
76 | \text{post=} |
||
77 | |||
78 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
||
79 | |||
80 | \precision{10000} |
||
81 | \text{data=wims(singlespace \data)} |
||
82 | \text{data=wims(nonempty rows \data)} |
||
83 | \text{data=randomrow(\data)} |
||
84 | \text{data=wims(embraced randitem \data)} |
||
85 | \text{data=slib(text/cutchoice2 \data)} |
||
86 | \integer{qs=min(20,floor(rows(\data)/2))} |
||
87 | \text{types=} |
||
88 | \text{options=} |
||
89 | \text{lengths=} |
||
90 | |||
91 | \text{good=} |
||
92 | \text{field=} |
||
93 | \for{i=1 to \qs}{ |
||
94 | \text{f=\data[2*\i;]} |
||
95 | \integer{test=items(\f)} |
||
96 | \if{\test>1}{ |
||
97 | \text{g=\f[1]} |
||
98 | \text{f=wims(sort items \f)} |
||
99 | \text{g=positionof(\g,\f)} |
||
100 | \text{good=\good\g;,} |
||
101 | \text{field=\field\f;} |
||
102 | \text{types=\types[]menu,} |
||
103 | \text{lengths=\lengths,} |
||
104 | }{ |
||
105 | \text{good=\good\f,} |
||
106 | \integer{c=wims(charcnt \f)} |
||
107 | \text{field=\field;} |
||
108 | \real{test=\f} |
||
109 | \if{\test issametext NaN}{ |
||
110 | \text{test=wims(translate internal | to , in \f)} |
||
111 | \integer{c=wims(charcnt \test[1])} |
||
112 | \integer{c=min(50,max(6,\c+6))} |
||
113 | \text{lengths=\lengths\c,} |
||
114 | \text{types=\types[]atext,} |
||
115 | \text{options=| isin \f?\options[]symtext} |
||
116 | }{ |
||
117 | \integer{c=max(5,\c+2)} |
||
118 | \text{lengths=\lengths\c,} |
||
119 | \text{f1=wims(nospace \f)} |
||
120 | \text{test=wims(text select -0123456789 in \f)} |
||
121 | \text{types=\test issametext \f1 and abs(\f)<4000?\types[]numexp,:\types[]number,} |
||
122 | } |
||
123 | } |
||
124 | \text{options=\options,} |
||
125 | } |
||
126 | |||
127 | \text{pre=wims(embraced randitem \pre)} |
||
128 | \text{post=wims(embraced randitem \post)} |
||
129 | \text{qlist=wims(makelist reply x for x=1 to \qs)} |
||
130 | \steps{\qlist} |
||
131 | |||
132 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
||
133 | |||
134 | ::Vous n'avez pas besoin de modifier ceci en général. |
||
135 | |||
136 | \statement{\pre |
||
137 | \data[1;] |
||
138 | \for{k=1 to \qs}{ |
||
139 | \embed{r \k,\lengths[\k]} \data[2*\k+1;] |
||
140 | } |
||
141 | \post |
||
142 | } |
||
143 | |||
144 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
||
145 | |||
146 | \answer{Champ 1}{\good[1]\field[1;]}{type=\types[1]}{option=\options[1]} |
||
147 | \answer{Champ 2}{\good[2]\field[2;]}{type=\types[2]}{option=\options[2]} |
||
148 | \answer{Champ 3}{\good[3]\field[3;]}{type=\types[3]}{option=\options[3]} |
||
149 | \answer{Champ 4}{\good[4]\field[4;]}{type=\types[4]}{option=\options[4]} |
||
150 | \answer{Champ 5}{\good[5]\field[5;]}{type=\types[5]}{option=\options[5]} |
||
151 | \answer{Champ 6}{\good[6]\field[6;]}{type=\types[6]}{option=\options[6]} |
||
152 | \answer{Champ 7}{\good[7]\field[7;]}{type=\types[7]}{option=\options[7]} |
||
153 | \answer{Champ 8}{\good[8]\field[8;]}{type=\types[8]}{option=\options[8]} |
||
154 | \answer{Champ 9}{\good[9]\field[9;]}{type=\types[9]}{option=\options[9]} |
||
155 | \answer{Champ 10}{\good[10]\field[10;]}{type=\types[10]}{option=\options[10]} |
||
156 | \answer{Champ 11}{\good[11]\field[11;]}{type=\types[11]}{option=\options[11]} |
||
157 | \answer{Champ 12}{\good[12]\field[12;]}{type=\types[12]}{option=\options[12]} |
||
158 | \answer{Champ 13}{\good[13]\field[13;]}{type=\types[13]}{option=\options[13]} |
||
159 | \answer{Champ 14}{\good[14]\field[14;]}{type=\types[14]}{option=\options[14]} |
||
160 | \answer{Champ 15}{\good[15]\field[15;]}{type=\types[15]}{option=\options[15]} |
||
161 | \answer{Champ 16}{\good[16]\field[16;]}{type=\types[16]}{option=\options[16]} |
||
162 | \answer{Champ 17}{\good[17]\field[17;]}{type=\types[17]}{option=\options[17]} |
||
163 | \answer{Champ 18}{\good[18]\field[18;]}{type=\types[18]}{option=\options[18]} |
||
164 | \answer{Champ 19}{\good[19]\field[19;]}{type=\types[19]}{option=\options[19]} |
||
165 | \answer{Champ 20}{\good[20]\field[20;]}{type=\types[20]}{option=\options[20]} |
||
166 |