Rev 13556 | Rev 13781 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
type=gapfill first
textarea="data feedback_general"
iEdit="data feedback_general"
asis="feedback_general"
:Domande miste incorporate in un testo (cloze).
Questo esercizio presenta un testo contenente campi in cui inserire le risposte.
<p>
Per costruire un esercizio secondo questo modello è sufficiente inserire i
testi. Una sintassi semplificata permette di incorporare in questo testo campi
per domande a scelta multipla o domande a risposta libera.
</p><p class="wims_credits">
Autore del modello: Gang Xiao <qualite@wimsedu.info></p>
:%%%%%%%%%%%%%%%%% 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{Completa il testo (cloze)}
:\author{XIAO, Gang}
:\email{qualite@wimsedu.info}
:\credits{}
:Dati principali.
Le domande devono essere messe tra due coppie di doppi
punti di domanda "??".
<p>
La domanda è interpretata come una scelta multipla se contiene più
elementi separati da virgole. Altrimenti è interpretata come una domanda
a risposta libera, e il tipo di risposta richiesto (numerico o testuale)
è determinato dal dato inserito.</p>
<p>
Si possono inserire fino a 20 domande in una frase.
Se in una domanda a risposta libera sono possibili più risposte,
separare le riposte equivalenti (sinonimi) con una barra verticale <span
class="tt wims_code_words">|</span> (in questo caso la verifica della
correttezza della risposta è effettuato utilizzando symtext).
</p>
<p>$embraced_randitem</p>
\text{data=
Compleare: <br/>
Linux a été créé en l'année
??1991??
par Linus Torvalds qui était un étudiant
??finlandais,suédois,américain,anglais,nordique?? faisant à l'époque son
apprentissage sur le système
??Minix?? sur des machines d'architecture
??Intel 386,Sun,Macintosh,Bull,Microsoft??. Il a posté la première version
de son système sur un newsgroupe, qui était la version
??0.02??.
}
:Scelte casuali di elementi inseriti tra parentesi graffe
$embraced_randitem
\text{accolade=item(1,1 sì,
2 no)}
:Ordinamento dei menu
I menu possono essere mostrati in ordine casuale (shuffle) oppure in ordine alfabetico (alpha).
\text{list_order=item(1,alpha,shuffle)}
:Feedback Generale
Questo testo viene mostrato dopo la risposta dello studente, sia nel caso tale riposta sia corretta, che nel caso la risposta sia sbagliata.
\text{feedback_general=}
:%%%%%%%%%%%%%% Nulla da modificare fino all'enunciato %%%%%%%%%%%%%%%%
\precision{10000}
\text{data=wims(singlespace \data)}
\text{accolade=wims(word 1 of \accolade)}
\text{data=\accolade=1 ? wims(embraced randitem \data)}
\text{data=slib(text/cutchoice2 \data)}
\integer{qs=min(20,floor(rows(\data)/2))}
\text{types=}
\text{options=}
\text{lengths=}
\text{good=}
\text{field=}
\text{latextext= \data[1;]}
\text{latexsol=\data[1;]}
\for{i=1 to \qs}{
\text{f=\data[2*\i;]}
\integer{test=items(\f)}
\if{\test>1}{
\text{g=\f[1]}
\if{\list_order issametext alpha}{
\text{f=wims(sort items \f)}
}
{
\text{f=shuffle(\f,,)}
}
\text{g=positionof(\g,\f)}
\text{good=\good\g;,}
\text{field=\field\f;}
\text{types=\types[]menu,}
\text{lengths=\lengths,}
\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{good=\good\f,}
\integer{c=wims(charcnt \f)}
\text{field=\field;}
\real{test=\f}
\if{\test issametext NaN}{
\text{test=wims(translate internal | to , in \f)}
\integer{c=wims(charcnt \test[1])}
\integer{c=min(50,max(6,\c+6))}
\text{lengths=\lengths\c,}
\text{types=\types[]atext,}
\text{options=| isin \f?\options[]symtext}
}{
\integer{c=max(5,\c+2)}
\text{lengths=\lengths\c,}
\text{f1=wims(nospace \f)}
\text{test=wims(text select -0123456789 in \f)}
\text{types=\test issametext \f1 and abs(\f)<4000?\types[]numexp,:\types[]number,}
}
\real{taille=ceil(\lengths[\i]/3)}
\text{latextext=\latextext \underline{\hspace{\taille cm}} \data[2*\i+1;]}
\text{latexsol=\latexsol \goodchoice{\f} \data[2*\i+1;]}
}
\text{options=\options,}
}
\text{qlist=wims(makelist reply x for x=1 to \qs)}
\steps{\qlist}
:%%%%%%%%%%%%% Enunciato (in html). %%%%%%%%%%%%%%%%%%%%
::In questa parte non dovrebbe esserci nulla da modificare.
\statement{
\data[1;]
\for{k=1 to \qs}{
\if{\types[\k] notsametext menu}{
\embed{r \k,\lengths[\k]}
}{
\embed{r \k,\lengths[\k]}}
\data[2*\k+1;]
}
}
:%%%%%%%%%%%%% Non modificare nulla da qui in poi. %%%%%%%%%%%%%%%%%
\answer{Champ 1}{\good[1]\field[1;]}{type=\types[1]}{option=\options[1]}
\answer{Champ 2}{\good[2]\field[2;]}{type=\types[2]}{option=\options[2]}
\answer{Champ 3}{\good[3]\field[3;]}{type=\types[3]}{option=\options[3]}
\answer{Champ 4}{\good[4]\field[4;]}{type=\types[4]}{option=\options[4]}
\answer{Champ 5}{\good[5]\field[5;]}{type=\types[5]}{option=\options[5]}
\answer{Champ 6}{\good[6]\field[6;]}{type=\types[6]}{option=\options[6]}
\answer{Champ 7}{\good[7]\field[7;]}{type=\types[7]}{option=\options[7]}
\answer{Champ 8}{\good[8]\field[8;]}{type=\types[8]}{option=\options[8]}
\answer{Champ 9}{\good[9]\field[9;]}{type=\types[9]}{option=\options[9]}
\answer{Champ 10}{\good[10]\field[10;]}{type=\types[10]}{option=\options[10]}
\answer{Champ 11}{\good[11]\field[11;]}{type=\types[11]}{option=\options[11]}
\answer{Champ 12}{\good[12]\field[12;]}{type=\types[12]}{option=\options[12]}
\answer{Champ 13}{\good[13]\field[13;]}{type=\types[13]}{option=\options[13]}
\answer{Champ 14}{\good[14]\field[14;]}{type=\types[14]}{option=\options[14]}
\answer{Champ 15}{\good[15]\field[15;]}{type=\types[15]}{option=\options[15]}
\answer{Champ 16}{\good[16]\field[16;]}{type=\types[16]}{option=\options[16]}
\answer{Champ 17}{\good[17]\field[17;]}{type=\types[17]}{option=\options[17]}
\answer{Champ 18}{\good[18]\field[18;]}{type=\types[18]}{option=\options[18]}
\answer{Champ 19}{\good[19]\field[19;]}{type=\types[19]}{option=\options[19]}
\answer{Champ 20}{\good[20]\field[20;]}{type=\types[20]}{option=\options[20]}
\feedback{1=1}{\feedback_general}
\latex{
\begin{statement}
\latextext
\end{statement}
\begin{solution}
\latexsol
\end{solution}
}