Rev 15179 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11375 | bpr | 1 | type=gapfill first |
13781 | bpr | 2 | textarea="explain data" |
3 | iEdit="explain" |
||
4 | asis="explain" |
||
23 | reyssat | 5 | |
5638 | czzmrn | 6 | :Domande a scelta multipla incorporate in un testo |
23 | reyssat | 7 | |
5638 | czzmrn | 8 | L'esercizio presenta un testo in cui alcune parole vanno scelte tra quelle |
9 | di un elenco proposto. |
||
23 | reyssat | 10 | <p> |
5638 | czzmrn | 11 | Per costruire un esercizio di questo tipo è sufficiente inserire il testo. |
8002 | bpr | 12 | Semplici comandi permettono quindi di incorporare gli elenchi per le |
5638 | czzmrn | 13 | scelte multiple. |
13479 | obado | 14 | </p><p class="wims_credits"> |
15179 | lemaire | 15 | Autore del modello: <a href="mailto:qualite@wimsedu.info">Gang Xiao</a></p> |
23 | reyssat | 16 | |
5638 | czzmrn | 17 | :%%%%%%%%%%%%%%%%% ATTENZIONE %%%%%%%%%%%%%%%%%%%% |
23 | reyssat | 18 | |
5638 | czzmrn | 19 | Se si rimuovono le indicazioni del modulo modelli (le righe che |
20 | cominciano con ':') è necessario rimuovere tutta questa parte |
||
21 | introduttiva del file. Altrimenti Createxo potrebbe non accettare il |
||
22 | codice dell'esercizio. |
||
23 | reyssat | 23 | |
5638 | czzmrn | 24 | :%%%%%%%% Parametri che possono essere ridefiniti %%%%%%%%%%%%%%%%% |
23 | reyssat | 25 | |
5638 | czzmrn | 26 | :\title{Scelte in un testo (semplice)} |
5147 | bpr | 27 | :\author{XIAO, Gang} |
8002 | bpr | 28 | :\email{qualite@wimsedu.info} |
5724 | bpr | 29 | :\credits{} |
23 | reyssat | 30 | |
5638 | czzmrn | 31 | :Dati principali. |
32 | Le domande da porre devono essere scritti tra due coppie |
||
33 | di punti di domanda "??". |
||
34 | Una stessa riga può contenere più domande (fino a 20). |
||
4248 | bpr | 35 | |
5638 | czzmrn | 36 | Con questo modello il testo è fisso. Invece il modello <b>Scelte in un testo</b> permette anche di far variare casualmente i testi. |
23 | reyssat | 37 | $embraced_randitem |
17175 | bpr | 38 | \text{data=Selezionare le risposte corrette.<br> |
23 | reyssat | 39 | Linux a été créé par Linus Torvalds en |
40 | ??1991,1995,1998,1986,1989,2001?? |
||
8002 | bpr | 41 | qui était un étudiant |
2966 | reyssat | 42 | ??finlandais,suédois,américain,anglais,nordique?? faisant à l'époque son |
23 | reyssat | 43 | apprentissage sur le système |
44 | ??Minix,Unix,Solaris?? sur des machines d'architecture |
||
45 | ??Intel 386,Sun,Macintosh,Bull,Microsoft??. Il a posté la première version |
||
13556 | czzmrn | 46 | de son système sur un newsgroup, qui était la version |
23 | reyssat | 47 | ??0.02,0.00,0.01,0.12,1.00??. |
48 | } |
||
49 | |||
13501 | czzmrn | 50 | :Scelte casuali di elementi inseriti tra parentesi graffe |
8530 | czzmrn | 51 | $embraced_randitem |
13556 | czzmrn | 52 | \text{accolade=item(1,1 sì, |
8530 | czzmrn | 53 | 2 no)} |
54 | |||
5638 | czzmrn | 55 | :%%%%%%%%%%% Parte che precede l'enunciato: da non modificare %%%%%%%%%%%%% |
8530 | czzmrn | 56 | \text{accolade=wims(word 1 of \accolade)} |
23 | reyssat | 57 | \text{data=wims(singlespace \data)} |
8530 | czzmrn | 58 | \text{data=\accolade=1 ? wims(embraced randitem \data)} |
23 | reyssat | 59 | \text{data=slib(text/cutchoice2 \data)} |
60 | \integer{qs=min(20,floor(rows(\data)/2))} |
||
61 | |||
62 | \text{good=} |
||
63 | \text{field=} |
||
13556 | czzmrn | 64 | \text{latextext= \data[1;]} |
65 | \text{latexsol=\data[1;]} |
||
23 | reyssat | 66 | \for{i=1 to \qs}{ |
67 | \text{f=\data[2*\i;]} |
||
68 | \text{g=\f[1]} |
||
69 | \text{f=wims(sort items \f)} |
||
70 | \text{g=positionof(\g,\f)} |
||
71 | \text{good=\good\g,} |
||
72 | \text{field=\field\f;} |
||
13556 | czzmrn | 73 | \integer{nbc = items(\f)-1} |
74 | \for{ii = 1 to \nbc}{ |
||
75 | \text{latextext=\latextext \listchoice{\f[\ii]} / }} |
||
76 | \text{latextext=\latextext \listchoice{\f[\nbc+1]} \data[2*\i+1;]} |
||
77 | \text{latexsol=\latexsol \goodchoice{\field[\i;\g]} \data[2*\i+1;]} |
||
23 | reyssat | 78 | } |
79 | \text{qlist=wims(makelist reply x for x=1 to \qs)} |
||
80 | \steps{\qlist} |
||
81 | |||
5638 | czzmrn | 82 | :%%%%%%%%%%%%% Enunciato (in html). %%%%%%%%%%%%%%%%%%%% |
23 | reyssat | 83 | |
5638 | czzmrn | 84 | ::In questa parte non dovrebbe esserci nulla da modificare. |
23 | reyssat | 85 | |
86 | \statement{ |
||
87 | \data[1;] |
||
88 | \for{k=1 to \qs}{ |
||
13556 | czzmrn | 89 | \embed{r \k} \data[2*\k+1;] |
23 | reyssat | 90 | } |
91 | } |
||
92 | |||
5638 | czzmrn | 93 | :%%%%%%%%%%%%% Non modificare nulla da qui in poi. %%%%%%%%%%%%%%%%%5 |
23 | reyssat | 94 | |
95 | \answer{Champ 1}{\good[1];\field[1;]}{type=menu} |
||
96 | \answer{Champ 2}{\good[2];\field[2;]}{type=menu} |
||
97 | \answer{Champ 3}{\good[3];\field[3;]}{type=menu} |
||
98 | \answer{Champ 4}{\good[4];\field[4;]}{type=menu} |
||
99 | \answer{Champ 5}{\good[5];\field[5;]}{type=menu} |
||
100 | \answer{Champ 6}{\good[6];\field[6;]}{type=menu} |
||
101 | \answer{Champ 7}{\good[7];\field[7;]}{type=menu} |
||
102 | \answer{Champ 8}{\good[8];\field[8;]}{type=menu} |
||
103 | \answer{Champ 9}{\good[9];\field[9;]}{type=menu} |
||
104 | \answer{Champ 10}{\good[10];\field[10;]}{type=menu} |
||
105 | \answer{Champ 11}{\good[11];\field[11;]}{type=menu} |
||
106 | \answer{Champ 12}{\good[12];\field[12;]}{type=menu} |
||
107 | \answer{Champ 13}{\good[13];\field[13;]}{type=menu} |
||
108 | \answer{Champ 14}{\good[14];\field[14;]}{type=menu} |
||
109 | \answer{Champ 15}{\good[15];\field[15;]}{type=menu} |
||
110 | \answer{Champ 16}{\good[16];\field[16;]}{type=menu} |
||
111 | \answer{Champ 17}{\good[17];\field[17;]}{type=menu} |
||
112 | \answer{Champ 18}{\good[18];\field[18;]}{type=menu} |
||
113 | \answer{Champ 19}{\good[19];\field[19;]}{type=menu} |
||
114 | \answer{Champ 20}{\good[20];\field[20;]}{type=menu} |
||
115 | |||
13556 | czzmrn | 116 | \latex{ |
117 | \begin{statement} |
||
118 | \latextext |
||
119 | \end{statement} |
||
120 | \begin{solution} |
||
121 | \latexsol |
||
122 | \end{solution} |
||
123 | } |