Rev 15179 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11360 | bpr | 1 | type=order first |
23 | reyssat | 2 | textarea="data explain" |
13716 | obado | 3 | iEdit="explain" |
23 | reyssat | 4 | |
13498 | czzmrn | 5 | :Remettre en bon ordre des objets donnés, glisser-déposer. |
23 | reyssat | 6 | |
13498 | czzmrn | 7 | On présente une liste d'objets, et il faut les trier selon l'ordre précisé |
8 | en les tirant vers les cases prévues avec la souris. |
||
23 | reyssat | 9 | <p> |
13498 | czzmrn | 10 | Pour construire un exercice avec ce modèle, il suffit d'entrer la liste |
11 | d'objets à trier et changer le texte explicatif. |
||
13488 | obado | 12 | </p><p> |
13498 | czzmrn | 13 | Avec une petite modification, une variante de ce modèle peut accepter des |
13488 | obado | 14 | images comme objets.</p> |
23 | reyssat | 15 | |
15179 | lemaire | 16 | <p class="wims_credits">Auteur du modèle : <a href="mailto:qualite@wimsedu.info">Gang Xiao</a></p> |
17 | |||
23 | reyssat | 18 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
19 | |||
13498 | czzmrn | 20 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
23 | reyssat | 21 | (Ce sont les lignes qui commencent par un ':'.) |
22 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
23 | |||
13498 | czzmrn | 24 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
23 | reyssat | 25 | |
13498 | czzmrn | 26 | :\title{Réordonner} |
5147 | bpr | 27 | :\author{XIAO, Gang} |
8002 | bpr | 28 | :\email{qualite@wimsedu.info} |
5724 | bpr | 29 | :\credits{} |
23 | reyssat | 30 | |
13498 | czzmrn | 31 | :Nombre d'objets à trier par exercice. Jusqu'à 20. |
13716 | obado | 32 | <p>Si ce nombre est plus petit que les objets disponibles, une partie tirée au |
33 | hasard des objets seront présentés.</p><p> |
||
13498 | czzmrn | 34 | Si ce nombre est plus grand que les objets disponibles, il sera ramené au |
13716 | obado | 35 | nombre d'objets.</p> |
23 | reyssat | 36 | \integer{tot=6} |
37 | |||
13498 | czzmrn | 38 | :La taille des objets à glisser, en pixels, x fois y. |
23 | reyssat | 39 | Pensez aux gens qui augmentent la taille de polices de leurs navigateurs ! |
40 | Ne mettez pas les cases trop petites. |
||
41 | \text{size=80x40} |
||
42 | |||
13716 | obado | 43 | :Consigne pour les apprenants |
44 | \text{explain= |
||
45 | Mettre les planètes suivantes du système solaire dans le bon ordre, la plus proche |
||
46 | du Soleil en premier. |
||
47 | } |
||
48 | |||
13498 | czzmrn | 49 | :La liste d'objets à réordonner |
50 | Ecrivez les objets dans le bon ordre, séparés par des virgules. |
||
51 | Si l'on désire rentrer plusieurs listes, en mettre une par ligne |
||
52 | qui sera alors tirée au hasard. |
||
53 | \text{data=Mercure,Vénus,Terre,Mars,Jupiter,Saturne,Uranus,Neptune} |
||
23 | reyssat | 54 | |
13498 | czzmrn | 55 | :Mise en aléatoire par des accolades emboitables |
7173 | bpr | 56 | $embraced_randitem |
57 | \text{accolade=item(1,1 oui, |
||
58 | 2 non)} |
||
23 | reyssat | 59 | |
13498 | czzmrn | 60 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
10914 | bpr | 61 | \text{data=randomrow(\data)} |
7173 | bpr | 62 | \text{accolade=wims(word 1 of \accolade)} |
63 | \text{data=\accolade=1 ? wims(embraced randitem \data)} |
||
23 | reyssat | 64 | \integer{datacnt=items(\data)} |
65 | \integer{tot=min(20,min(\tot,\datacnt))} |
||
66 | \if{\tot<\datacnt}{ |
||
67 | \text{sh=shuffle(\datacnt)} |
||
68 | \text{sh=wims(sort numeric items \sh[1..\tot])} |
||
69 | \text{data=item(\sh,\data)} |
||
70 | } |
||
71 | |||
72 | \text{st=wims(makelist r x for x=1 to \tot)} |
||
13533 | bpr | 73 | \text{datatext = slib(data/random \tot, item, \data)} |
23 | reyssat | 74 | \steps{\st} |
75 | |||
13498 | czzmrn | 76 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
23 | reyssat | 77 | |
13498 | czzmrn | 78 | ::Vous n'avez pas besoin de modifier ceci en général. |
23 | reyssat | 79 | |
15344 | obado | 80 | \statement{ |
81 | <div>\explain</div> |
||
82 | \for{k=1 to \tot}{<div class="inline">\embed{r\k,\size}</div>} |
||
23 | reyssat | 83 | } |
84 | |||
13498 | czzmrn | 85 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
23 | reyssat | 86 | |
87 | \answer{1}{\data[1]}{type=dragfill} |
||
88 | \answer{2}{\data[2]}{type=dragfill} |
||
89 | \answer{3}{\data[3]}{type=dragfill} |
||
90 | \answer{4}{\data[4]}{type=dragfill} |
||
91 | \answer{5}{\data[5]}{type=dragfill} |
||
92 | \answer{6}{\data[6]}{type=dragfill} |
||
93 | \answer{7}{\data[7]}{type=dragfill} |
||
94 | \answer{8}{\data[8]}{type=dragfill} |
||
95 | \answer{9}{\data[9]}{type=dragfill} |
||
96 | \answer{10}{\data[10]}{type=dragfill} |
||
97 | \answer{11}{\data[11]}{type=dragfill} |
||
98 | \answer{12}{\data[12]}{type=dragfill} |
||
99 | \answer{13}{\data[13]}{type=dragfill} |
||
100 | \answer{14}{\data[14]}{type=dragfill} |
||
101 | \answer{15}{\data[15]}{type=dragfill} |
||
102 | \answer{16}{\data[16]}{type=dragfill} |
||
103 | \answer{17}{\data[17]}{type=dragfill} |
||
104 | \answer{18}{\data[18]}{type=dragfill} |
||
105 | \answer{19}{\data[19]}{type=dragfill} |
||
106 | \answer{20}{\data[20]}{type=dragfill} |
||
107 | |||
13533 | bpr | 108 | \latex{ |
109 | \begin{statement} |
||
110 | \explain \newline |
||
13543 | bpr | 111 | \listchoice{\datatext} |
13533 | bpr | 112 | \end{statement} |
113 | \begin{solution} |
||
114 | \data |
||
115 | \end{solution} |
||
116 | } |