Subversion Repositories wimsdev

Rev

Rev 13715 | Blame | Compare with Previous | Last modification | View Log | RSS feed

type=gapfill
textarea="data pre post"
iEdit="pre post"

:Domande a scelta multipla inserite in un testo scelto in modo casuale.

L'esercizio presenta un testo in cui alcune parole vanno scelte tra quelle
di un elenco proposto.
<p>
Per costruire un esercizio di questo tipo è sufficiente inserire il testo.
Semplici comandi permettono quindi di inserire gli elenchi per le
scelte multiple.
</p><p class="wims_credits">
Autore del modello: <a href="mailto:qualite@wimsedu.info">Gang Xiao</a> con modifiche di Bernadette Perrin-Riou
    (aggiunta dell'opzione clickfill)</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{Scelte in un testo}
:\author{XIAO, Gang}
:\email{qualite@wimsedu.info}
:\credits{}

:Formato delle risposte
Possibilità: menu, clickfill, dragfill
<ul><li><dl class="tt">clickfill</dl> etichette da spostare (una etichetta può essere utilizzata più volte).
</li>
<li><dl class="tt">dragfill</dl> etichette da spostare (ogni etichetta può essere utilizzata una volta sola).
</li>
<li><dl class="tt">menu</dl> menu a tendina.
</li></ul>
\text{format=item(1,menu,
        clickfill,
        dragfill)}

:Dimesione dei riquadri (clickfill, dragfill)
\text{len=150 x 35}

:Dati principali.
Occorre definire una domanda per riga, separando le righe con un punto
e virgola (e quindi i testi non devono contenere ";".) <p>
Le domande da porre devono essere scritti tra due coppie
di punti di domanda "??".
Un singolo testo riga può contenere fino a 20 domande.

$embraced_randitem
\text{data=
The last emperor ??Pu Yi, Pu Jie, Ci Xi, Yuan Shikai??
of the last Chinese dynasty ??Qing,Ming,Song,Tang??, was destituted by
??a military uprising, the Japanses envaders,The soviet Red Army,
the communists?? in
??1911,1917,1937,1945,1949??. He
??is dead by disease,has been executed,committed suicide?? in
??1967,1911,1918,1945,1950,1960?? in Beijing.;

After ??a ferocious,an easy?? battle, the Japanese has envaded Shanghai in
??1937,1932,1938,1940,1941,1942?? which had an western "common"
concession in that time. They have
??partially, totally, not at all?? respected the neutrality off the concession
during their occupation up to ??1941,1939,1942,1945??. The abolition of the
concession was first pronounced by the
??puppet,nationalist,communist?? government
in ??1943,1945,1949,1960??.;

The first opium war was launched by
??the Great Britain,France, the United States, several western countries??
against ??China, India?? in ??1839,{1739,1741,1756},1841,1856??, to the aim of
??protecting,prohibiting?? the drug (opium) traffic. This was has ended by
the capitulation of the ??Chinese,Indian?? government
??3,2,4,5,8?? years later, with the signature of the treaty of
??Nankin,Pekin,Canton,Maguan,Taiping,Tianjin??.;
}

:Testo che precede la domanda. Sono permessi comandi html, può essere vuoto.
$embraced_randitem
\text{pre=Seleziona:}

:Testo che segue la domanda. Sono permessi comandi html, può essere vuoto.
$embraced_randitem
\text{post=}

:Scelte casuali di elementi inseriti tra parentesi graffe
$embraced_randitem
\text{accolade=item(1,1 sì,
2 no)}

:%%%%%%%%%%% Parte che precede l'enunciato: da non modificare %%%%%%%%%%%%%
\text{accolade=wims(word 1 of \accolade)}
\text{format=wims(word 1 of \format)}
\text{len=\format issametext menu ? }
\text{data=wims(singlespace \data)}
\text{data=wims(nonempty rows \data)}
\text{data=randomrow(\data)}
\text{data=\accolade=1 ?wims(embraced randitem \data)}
\text{data=slib(text/cutchoice2 \data)}
\integer{qs=min(20,floor(rows(\data)/2))}

\text{good=}
\text{field=}
\text{latextext= \data[1;]}
\text{latexsol=\data[1;]}
\for{i=1 to \qs}{
 \text{f=\data[2*\i;]}
 \text{g=\f[1]}
 \text{f=wims(sort items \f)}
 \text{g1=positionof(\g,\f)}
 \text{good=\format iswordof clickfill dragfill ?\good\g,:\good\g1,}
 \text{field=\field\f;}
  \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;\g1]} \data[2*\i+1;]}
}

\text{pre=\accolade=1 ?wims(embraced randitem \pre)}
\text{post=\accolade=1 ?wims(embraced randitem \post)}
\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{
  <div class="instruction">\pre</div>
  \data[1;]
  \for{k=1 to \qs}{
    \embed{r \k,\len} \data[2*\k+1;]
  }
  \post
}

:%%%%%%%%%%%%% Non modificare nulla da qui in poi. %%%%%%%%%%%%%%%%%5

\answer{Champ 1}{\good[1];\field[1;]}{type=\format}
\answer{Champ 2}{\good[2];\field[2;]}{type=\format}
\answer{Champ 3}{\good[3];\field[3;]}{type=\format}
\answer{Champ 4}{\good[4];\field[4;]}{type=\format}
\answer{Champ 5}{\good[5];\field[5;]}{type=\format}
\answer{Champ 6}{\good[6];\field[6;]}{type=\format}
\answer{Champ 7}{\good[7];\field[7;]}{type=\format}
\answer{Champ 8}{\good[8];\field[8;]}{type=\format}
\answer{Champ 9}{\good[9];\field[9;]}{type=\format}
\answer{Champ 10}{\good[10];\field[10;]}{type=\format}
\answer{Champ 11}{\good[11];\field[11;]}{type=\format}
\answer{Champ 12}{\good[12];\field[12;]}{type=\format}
\answer{Champ 13}{\good[13];\field[13;]}{type=\format}
\answer{Champ 14}{\good[14];\field[14;]}{type=\format}
\answer{Champ 15}{\good[15];\field[15;]}{type=\format}
\answer{Champ 16}{\good[16];\field[16;]}{type=\format}
\answer{Champ 17}{\good[17];\field[17;]}{type=\format}
\answer{Champ 18}{\good[18];\field[18;]}{type=\format}
\answer{Champ 19}{\good[19];\field[19;]}{type=\format}
\answer{Champ 20}{\good[20];\field[20;]}{type=\format}

\latex{
\begin{statement}
\pre \ \newline
\latextext \newline
\post
\end{statement}
\begin{solution}
\latexsol
\end{solution}
}