Rev 13556 | Rev 13725 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
type=select
textarea="data instruction instruction2"
iEdit="instruction instruction2"
:Selezionare una parola, quindi rispondere a una domanda su questa parola
Al primo passo, contrassegnare le parole; al secondo passo rispondere
a una domanda su queste parole (texte à répondre).
<div class="small">
Se questo esercizio viene inserito in un modulo OEF i dati possono essere
raccolti in un file ausiliario. In questo caso è sufficiente definire
la variabile \text{file=} con il nome del file
(questo va fatto nel momento in cui si inserisce l'esercizio in un modulo
OEF in Modtool).
In Quicktool è disponibile un esercizio di questo tipo più completo.
</div>
<div class="wims_credits">Autore del modello: <a href="mailto:bpr@math.u-psud.fr">Bernadette Perrin-Riou</a></div>
:%%%%%%%%%%%%%%%%% ATTENZIONE %%%%%%%%%%%%%%%%%%%%
Se si rimuovono le indicazioni del modulo modelli (le righe che
cominciano con ':') è necessario rimuovere tutta questa parte
introduttiva del file. Altrimenti Createxo potrebbe non accettare il
codice dell'esercizio.
:%%%%%%%% Parametri che possono essere ridefiniti %%%%%%%%%%%%%%%%%
:\title{Domande su una selezione di parole}
:\author{Bernadette, Perrin-Riou}
:\email{bpr@math.u-psud.fr}
:\credits{}
:Consegna per la prima domanda
\text{instruction=Selezionare i verbi.}
:Consegna per la seconda domanda
\text{instruction2=Quali sono i rispettivi infiniti?}
:Analisi della ripsosta alla seconda domanda
Le possibili opzioni sono: <ul>
<li><span class="tt">case</span> (tiene conto delle maiuscole/minuscole),</li>
<li><span class="tt">nocase</span> (non tenere conto delle maiuscole/minuscole).</li></ul>
Se non viene compilato, la seconda domanda non viene proposta.
\text{format=case}
:Numero di righe di dati
L'esercizio mostrerà questo numero di frasi prese a caso tra quelle definite più sotto.
\text{M=3}
:Dimensione della risposta alla seconda domanda
Dimensione dello spazio in cui inserire la risposta alla seconda domanda. Prendere come riferimento la dimensione della parola più lunga.
\text{size=15}
:Dati
Una frase per riga. Le parole da selezionare devono essere inserite tra
due coppie di punti di domanda "??", seguite dal testo della risposta alla
seconda domanda, usando come separatore il simbolo
<span class="tt wims_code_words">|</span>.
$embraced_randitem
\text{data= Le chat ??mange|manger?? la souris.
Vous ??{avez bu,buvez}|boire?? du {thé,café}.
Nous ??tournons|tourner?? les pages du livre une à une.
Les randonneurs ??{feront,font}|faire?? un feu.
Il ??{a déménagé,déménage}|déménager?? pendant les vacances.
Les navires ??{ont quitté,quittent}|quitter?? le port aujourd'hui.
Mon chien ??remue|remuer?? {la queue,les oreilles}.
Tu ??{prépareras,as préparé,prépares}|préparer?? un cadeau pour tes {parents,grands-parents}.
Je ??suis arrivé|arriver?? {en retard,en avance} à mon rendez-vous.
{Christian,Paul} et moi ??regardons|regarder?? un film d'aventure.
}
:Mise en aléatoire par des accolades emboitables
$embraced_randitem
\text{accolade=item(1,1 sì,
2 no)}
:%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%%
\text{accolade=wims(word 1 of \accolade)}
\text{file=}
\text{partialscore=split}
\text{first_step=1}
\text{alea=yes}
\css{<style>
.question {background-color: #FFFFCC;margin: 2% 2%;padding: 1%;}
.reponse {background-color: #FFCC99;margin: 2% 2%;padding: 1%;}
</style>}
\text{paste=yes}
\text{pos_rep=outside}
\text{second_step=\format notsametext ? yes:no}
#####################
\text{format0=mark}
\if{\file notsametext}{
\text{file0=randitem(\file)}
\integer{cnt_question= wims(recordcnt \file0)}
\text{battage=\alea issametext yes ? shuffle(\cnt_question):
wims(makelist x for x = 1 to \cnt_question)}
\text{texte=wims(record \battage[1] of \file0)}
}{
\integer{cnt_question=rows(\data)}
\integer{N=min(\cnt_question,\M)}
\integer{N=min(\N,10)}
\text{liste=shuffle(\cnt_question)}
\text{liste=\liste[1..\N]}
\matrix{data=\data}
\text{texte=\data[\liste;]}
\text{texte=wims(replace internal ; by <br/> in \texte)}
}
\text{autocompletion=\format iswordof case ? autocomplete="off"}
\integer{first_step=\first_step notwordof 0 ? 1}
\text{option_reaccent=\reaccent!=yes ? noreaccent:}
\text{nopaste=\paste issametext no ? slib(utilities/nopaste )}
\text{size=\format iswordof dragfill clickfill ? \size x 1}
\text{texte=wims(\texte)}
\text{texte=\accolade=1 ?wims(embraced randitem \texte)}
\text{texte=wims(replace internal ??| by ?? | in \texte)}
\text{texte=wims(replace internal ?? | by ?? | in \texte)}
\text{texte = wims(replace internal <br/> by <br/> _newline_ in \texte)}
\matrix{texte=slib(text/markgroup \texte)}
\matrix{numero=\texte[1..-4;]}
\text{traduction=\texte[-2;]}
\text{traduction=wims(replace internal || by | in \traduction)}
\text{cnt_mot = rows(\numero)}
\text{Numero = wims(rows2lines \numero)}
\text{Numero = wims(lines2items \Numero)}
\text{prem_numero=wims(column 1 of \numero)}
\text{texte = \texte[-3;]}
\text{texte = wims(replace internal _newline_ by in \texte)}
\text{cnt = items(\texte)}
\text{Texte=wims(items2words \texte)}
\text{rep_compose = }
\for{ i = 1 to \cnt_mot}{
\text{nom_compose= \texte[\numero[\i;]]}
\text{nom_compose =wims(items2words \nom_compose)}
\text{rep_compose = \rep_compose,\nom_compose}
}
\text{rep_compose= wims(nonempty items \rep_compose)}
\text{STEP = wims(makelist r x for x = 2 to \cnt_mot+1)}
\text{labels = wims(makelist x for x = 2 to \cnt_mot+1)}
\text{position=}
\integer{a=0}
\for{t = 1 to \cnt}{
\if{\t isitemof \prem_numero}{
\integer{a =\a+1}
\text{position=\position,\a}
}{
\text{position=\position,0}
}
}
\text{position=wims(nonempty items \position)}
\text{STEP1=\first_step=1?r1}
\text{STEP1=\second_step issametext yes ? \STEP1
\STEP
}
\steps{\STEP1}
\integer{reste=\cnt%\coupure}
\integer{quo=(\cnt-\reste)/\coupure}
\integer{quo=\reste=0? \quo-1}
\text{nombre=wims(makelist x for x = 1 to \cnt)}
%%%%%%%%%%%
\statement{
\nopaste <div class="instruction">\instruction</div>
\preliminaire
\if{\reading notsametext }{\special{help reading,[à lire]}}
\if{\image notsametext }{\special{help image,[à regarder]}}
\audio\video
\if{\step=\first_step}{
<div class="question">
\if{\format iswordof flashcard}{
<p> \for{h=1 to \cnt}{\texte[\h] }</p>}
\for{h=1 to \cnt}{
\embed{reply 1,\h}
}
</div>
}
\if{\step >=1+\first_step}{
\if{\pos_rep=outside}{
<div class="reponse">
\for{s = 1 to \cnt}{
\if{\s notitemof \Numero}{
\texte[\s]
}{
\if{\s isitemof \Numero}{
<span style="color:blue;font-size:large;">\texte[\s]</span>
}
}
}
</div>
<p>\instruction2</p>
<div class="question">
\for{s= 1 to \cnt_mot}{
<div class="field">
<label for="reply\labels[\s]">\rep_compose[\s] :</label>
\embed{\STEP[\s],\size
\autocompletion}
</div>
}
</div>
}
\if{\pos_rep=inside}{
<p>\instruction2</p>
<div class="question">
\for{s = 1 to \cnt}{
\if{\s notitemof \Numero}{
\texte[\s]
}{
\if{\s isitemof \prem_numero}{
\embed{\STEP[\position[\s]], \size
\autocompletion}
}
<span class="smaller" style="color:blue;">\texte[\s]</span>
}
}
</div>
}
\if{\pos_rep=under}{
<div class="question">
\for{u = 0 to \quo}{
<table style="border:none">
<tr>
\for{ v = 1 to \coupure}{
<td style="text-align:center">
\if{\coupure*\u+\v <= \cnt}{
\if{\nombre[\coupure*\u+\v] isitemof \Numero}{<span style="color:blue;">}
\texte[\coupure*\u+\v]
}{ }
\if{\nombre[\coupure*\u+\v] isitemof \Numero}{</span>}
</td>
}
</tr><tr>
\for{ v = 1 to \coupure}{
<td style="text-align:center">
\if{\nombre[\coupure*\u+\v] isitemof \prem_numero}{
\embed{\STEP[\position[\nombre[\coupure*\u+\v]]], \size
\autocompletion}
}{ }
</td>
}
</tr><tr><td colspan="\coupure"><hr /></td></tr>
</table>
}
</div>
}
}
}
\answer{}{\Numero;\texte}{type=\format0}{option=\partialscore \option}
\answer{\rep_compose[1]}{\traduction[1];\choix}{type=\format}
\answer{\rep_compose[2]}{\traduction[2]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[3]}{\traduction[3]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[4]}{\traduction[4]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[5]}{\traduction[5]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[6]}{\traduction[6]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[7]}{\traduction[7]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[8]}{\traduction[8]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[9]}{\traduction[9]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[10]}{\traduction[10]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[11]}{\traduction[11]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[12]}{\traduction[12]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[13]}{\traduction[13]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[14]}{\traduction[14]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[15]}{\traduction[15]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[16]}{\traduction[16]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[17]}{\traduction[17]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[18]}{\traduction[18]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[19]}{\traduction[19]}{type=\format}{option=\option_reaccent}
\answer{\rep_compose[20]}{\traduction[20]}{type=\format}{option=\option_reaccent}