Rev 13779 | Blame | Compare with Previous | Last modification | View Log | RSS feed
type=gapfill first
textarea="explain data"
iEdit="explain"
asis="explain"
:Réponses à choisir dans un menu déroulant. Un seul texte peut être proposé.
Cet exercice présente un texte où des champs à choix multiples sont insérés.
<p>
Pour construire un exercice avec ce modèle, il suffit d'entrer les textes.
Une syntaxe facile permet d'incorporer les champs de choix dans les textes.
</p><p class="wims_credits">
Auteur du modèle : <a href="mailto:qualite@wimsedu.info">Gang Xiao</a></p>
:%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%%
Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle !
(Ce sont les lignes qui commencent par un ':'.)
Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo.
:%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%%
:\title{Menus déroulants dans un texte}
:\author{XIAO, Gang}
:\email{qualite@wimsedu.info}
:\credits{}
:Consigne pour les apprenants
\text{explain=Sélectionnez les bonnes réponses.}
:Données principales.
Les questions à poser doivent être mises entre une paire de
double-point d'interrogation "??": les différents choix sont séparés
par des virgules, la bonne réponse étant en premier.
On peut poser jusqu'à 20 questions dans une même phrase.
Le texte ici est fixe. Le modèle <b>Choix dans des textes</b> permet de faire varier les textes.
$embraced_randitem
\text{data=Linux a été créé par Linus Torvalds en
??1991,1995,1998,1986,1989,2001??
qui était un étudiant
??finlandais,suédois,américain,anglais,nordique?? faisant à l'époque son
apprentissage sur le système
??Minix,Unix,Solaris?? sur des machines d'architecture
??Intel 386,Sun,Macintosh,Bull,Microsoft??. Il a posté la première version
de son système sur un newsgroup, qui était la version
??0.02,0.00,0.01,0.12,1.00??.
}
:Mise en aléatoire par des accolades emboitables
$embraced_randitem
\text{accolade=item(1,1 oui,
2 non)}
:%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%%
\text{accolade=wims(word 1 of \accolade)}
\text{data=wims(singlespace \data)}
\text{data=\accolade=1 ? wims(embraced randitem \data)}
\text{data=slib(text/cutchoice2 \data)}
\integer{qs=min(20,floor(rows(\data)/2))}
\text{good=}
\text{field=}
\text{latextext= \data[1;]}
\text{latexsol=\data[1;]}
\for{i=1 to \qs}{
\text{f=\data[2*\i;]}
\text{g=\f[1]}
\text{f=wims(sort items \f)}
\text{g=positionof(\g,\f)}
\text{good=\good\g,}
\text{field=\field\f;}
\integer{nbc = items(\f)-1}
\for{ii = 1 to \nbc}{
\text{latextext=\latextext \listchoice{\f[\ii]} / }}
\text{latextext=\latextext \listchoice{\f[\nbc+1]} \data[2*\i+1;]}
\text{latexsol=\latexsol \goodchoice{\field[\i;\g]} \data[2*\i+1;]}
}
\text{qlist=wims(makelist reply x for x=1 to \qs)}
\steps{\qlist}
:%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%%
::Vous n'avez pas besoin de modifier ceci en général.
\statement{<div>\explain</div>
\data[1;]
\for{k=1 to \qs}{
\embed{r \k} \data[2*\k+1;]
}
}
:%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5
\answer{Champ 1}{\good[1];\field[1;]}{type=menu}
\answer{Champ 2}{\good[2];\field[2;]}{type=menu}
\answer{Champ 3}{\good[3];\field[3;]}{type=menu}
\answer{Champ 4}{\good[4];\field[4;]}{type=menu}
\answer{Champ 5}{\good[5];\field[5;]}{type=menu}
\answer{Champ 6}{\good[6];\field[6;]}{type=menu}
\answer{Champ 7}{\good[7];\field[7;]}{type=menu}
\answer{Champ 8}{\good[8];\field[8;]}{type=menu}
\answer{Champ 9}{\good[9];\field[9;]}{type=menu}
\answer{Champ 10}{\good[10];\field[10;]}{type=menu}
\answer{Champ 11}{\good[11];\field[11;]}{type=menu}
\answer{Champ 12}{\good[12];\field[12;]}{type=menu}
\answer{Champ 13}{\good[13];\field[13;]}{type=menu}
\answer{Champ 14}{\good[14];\field[14;]}{type=menu}
\answer{Champ 15}{\good[15];\field[15;]}{type=menu}
\answer{Champ 16}{\good[16];\field[16;]}{type=menu}
\answer{Champ 17}{\good[17];\field[17;]}{type=menu}
\answer{Champ 18}{\good[18];\field[18;]}{type=menu}
\answer{Champ 19}{\good[19];\field[19;]}{type=menu}
\answer{Champ 20}{\good[20];\field[20;]}{type=menu}
\latex{
\begin{statement}
\latextext
\end{statement}
\begin{solution}
\latexsol
\end{solution}
}