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=first |
2 | textarea="data" |
||
3 | |||
4 | :Questions à choix multiples incorporées dans un texte fixe. |
||
5 | |||
6 | Cet exercice présente un texte où des champs à choix multiples sont insérés. |
||
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 dans les textes. |
||
10 | <p> |
||
8002 | bpr | 11 | Auteur du modèle : Gang Xiao <qualite@wimsedu.info> |
23 | reyssat | 12 | |
13 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
14 | |||
2880 | bpr | 15 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
23 | reyssat | 16 | (Ce sont les lignes qui commencent par un ':'.) |
17 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
18 | |||
19 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
||
20 | |||
21 | :\title{Choix dans un texte} |
||
5147 | bpr | 22 | :\author{XIAO, Gang} |
8002 | bpr | 23 | :\email{qualite@wimsedu.info} |
23 | reyssat | 24 | |
25 | :Données principales. |
||
8002 | bpr | 26 | Les questions à poser doivent être mises entre une paire de |
5112 | bpr | 27 | double-point d'interrogation "??": les différents choix sont séparés |
28 | par des virgules, la bonne réponse étant en premier. |
||
29 | On peut poser jusqu'à 20 questions dans une même phrase. |
||
4248 | bpr | 30 | |
5129 | bpr | 31 | Le texte ici est fixe. Le modèle <b>Choix dans des textes</b> permet de faire varier les textes. |
23 | reyssat | 32 | $embraced_randitem |
7169 | bpr | 33 | \text{data=<p> |
34 | Remplissez : </p> |
||
23 | reyssat | 35 | Linux a été créé par Linus Torvalds en |
36 | ??1991,1995,1998,1986,1989,2001?? |
||
8002 | bpr | 37 | qui était un étudiant |
2966 | reyssat | 38 | ??finlandais,suédois,américain,anglais,nordique?? faisant à l'époque son |
23 | reyssat | 39 | apprentissage sur le système |
40 | ??Minix,Unix,Solaris?? sur des machines d'architecture |
||
41 | ??Intel 386,Sun,Macintosh,Bull,Microsoft??. Il a posté la première version |
||
42 | de son système sur un newsgroupe, qui était la version |
||
43 | ??0.02,0.00,0.01,0.12,1.00??. |
||
44 | } |
||
45 | |||
46 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
||
47 | |||
48 | \text{data=wims(singlespace \data)} |
||
49 | \text{data=wims(embraced randitem \data)} |
||
50 | \text{data=slib(text/cutchoice2 \data)} |
||
51 | \integer{qs=min(20,floor(rows(\data)/2))} |
||
52 | |||
53 | \text{good=} |
||
54 | \text{field=} |
||
55 | \for{i=1 to \qs}{ |
||
56 | \text{f=\data[2*\i;]} |
||
57 | \text{g=\f[1]} |
||
58 | \text{f=wims(sort items \f)} |
||
59 | \text{g=positionof(\g,\f)} |
||
60 | \text{good=\good\g,} |
||
61 | \text{field=\field\f;} |
||
62 | } |
||
63 | |||
64 | \text{pre=wims(embraced randitem \pre)} |
||
65 | \text{post=wims(embraced randitem \post)} |
||
66 | \text{qlist=wims(makelist reply x for x=1 to \qs)} |
||
67 | \steps{\qlist} |
||
68 | |||
69 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
||
70 | |||
71 | ::Vous n'avez pas besoin de modifier ceci en général. |
||
72 | |||
73 | \statement{ |
||
74 | \data[1;] |
||
75 | \for{k=1 to \qs}{ |
||
76 | \embed{r \k,\len} \data[2*\k+1;] |
||
77 | } |
||
78 | } |
||
79 | |||
80 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
||
81 | |||
82 | \answer{Champ 1}{\good[1];\field[1;]}{type=menu} |
||
83 | \answer{Champ 2}{\good[2];\field[2;]}{type=menu} |
||
84 | \answer{Champ 3}{\good[3];\field[3;]}{type=menu} |
||
85 | \answer{Champ 4}{\good[4];\field[4;]}{type=menu} |
||
86 | \answer{Champ 5}{\good[5];\field[5;]}{type=menu} |
||
87 | \answer{Champ 6}{\good[6];\field[6;]}{type=menu} |
||
88 | \answer{Champ 7}{\good[7];\field[7;]}{type=menu} |
||
89 | \answer{Champ 8}{\good[8];\field[8;]}{type=menu} |
||
90 | \answer{Champ 9}{\good[9];\field[9;]}{type=menu} |
||
91 | \answer{Champ 10}{\good[10];\field[10;]}{type=menu} |
||
92 | \answer{Champ 11}{\good[11];\field[11;]}{type=menu} |
||
93 | \answer{Champ 12}{\good[12];\field[12;]}{type=menu} |
||
94 | \answer{Champ 13}{\good[13];\field[13;]}{type=menu} |
||
95 | \answer{Champ 14}{\good[14];\field[14;]}{type=menu} |
||
96 | \answer{Champ 15}{\good[15];\field[15;]}{type=menu} |
||
97 | \answer{Champ 16}{\good[16];\field[16;]}{type=menu} |
||
98 | \answer{Champ 17}{\good[17];\field[17;]}{type=menu} |
||
99 | \answer{Champ 18}{\good[18];\field[18;]}{type=menu} |
||
100 | \answer{Champ 19}{\good[19];\field[19;]}{type=menu} |
||
101 | \answer{Champ 20}{\good[20];\field[20;]}{type=menu} |
||
102 |