Subversion Repositories wimsdev

Rev

Rev 13781 | Rev 14236 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13781 Rev 14235
Line 22... Line 22...
22
 
22
 
23
:\title{Choices in a text}
23
:\title{Choices in a text}
24
:\author{XIAO, Gang}
24
:\author{XIAO, Gang}
25
:\email{qualite@wimsedu.info}
25
:\email{qualite@wimsedu.info}
26
:\credits{}
26
:\credits{}
-
 
27
 
27
:Consigne pour les apprenants
28
:Instruction for learners
28
 
29
 
29
\text{explain=Remplissez.}
30
\text{explain=Remplissez.}
30
 
31
 
31
:Main data.
32
:Main data.
32
Questions to ask should be put between a pair of
33
Questions to ask should be put between a pair of
Line 36... Line 37...
36
 the correct answer being first.<br/>
37
 the correct answer being first.<br/>
37
If the question (between ??) contains only one object, then it is a free answer,
38
If the question (between ??) contains only one object, then it is a free answer,
38
 numeric if it is a number or textual otherwise.
39
 numeric if it is a number or textual otherwise.
39
</p><p>
40
</p><p>
40
You can ask up to 20 questions in one sentence.
41
You can ask up to 20 questions in one sentence.
41
Si plusieurs réponses correctes sont possibles dans une réponse libre, séparer
42
If several correct answers are possible in a free answer,
42
toutes les bonnes réponses (synonymes) par un trait vertical <span class="tt wims_code_words">|</span>.
43
 separate all the correct answers (synonyms) with a vertical line <span class="tt wims_code_words">|</span>.
43
(l'analyse est alors faite par symtext pour les experts).
44
(the analysis is then done by symtext).
44
</p>
45
</p>
45
$embraced_randitem
46
$embraced_randitem
46
\text{data=Linux was created in ??1991?? by Linus Torvalds,
47
\text{data=Linux was created in ??1991?? by Linus Torvalds,
47
who was a ??Finnish, Swedish, American, English, Nordic?? student
48
who was a ??Finnish, Swedish, American, English, Nordic?? student
48
at the time working on the ??Minix?? system on
49
at the time working on the ??Minix?? system on
Line 56... Line 57...
56
2 no)}
57
2 no)}
57
 
58
 
58
:Menu display order
59
:Menu display order
59
Menus can be displayed in a shuffle order or sorted.
60
Menus can be displayed in a shuffle order or sorted.
60
\text{list_order=item(1,alpha,shuffle)}
61
\text{list_order=item(1,alpha,shuffle)}
-
 
62
 
-
 
63
:Type of response analysis
-
 
64
The types <span class="tt">case</span> and <span class="tt">nocase</span> are especially suitable for language applications.
-
 
65
In other cases, prefer<span class="tt">atext</span>.
-
 
66
\text{type_rep=item(3,case (no error tolerance),
-
 
67
  nocase (tolerate lowercase / uppercase),
-
 
68
  atext (ignore plural / singular and articles))}
61
 
69
 
62
:%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%%
70
:%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%%
63
\text{accolade=wims(word 1 of \accolade)}
71
\text{accolade=wims(word 1 of \accolade)}
64
\precision{10000}
72
\precision{10000}
65
\text{data=wims(singlespace \data)}
73
\text{data=wims(singlespace \data)}
Line 77... Line 85...
77
 \integer{test=items(\f)}
85
 \integer{test=items(\f)}
78
 \if{\test>1}{
86
 \if{\test>1}{
79
  \text{g=\f[1]}
87
  \text{g=\f[1]}
80
  \if{\list_order issametext alpha}{
88
  \if{\list_order issametext alpha}{
81
    \text{f=wims(sort items \f)}
89
    \text{f=wims(sort items \f)}
82
  }
-
 
83
  {
90
  }{
84
    \text{f=shuffle(\f,,)}
91
    \text{f=shuffle(\f,,)}
85
  }
92
  }
86
  \text{g=positionof(\g,\f)}
93
  \text{g=positionof(\g,\f)}
87
  \text{good=\good\g;,}
94
  \text{good=\good\g;,}
88
  \text{field=\field\f;}
95
  \text{field=\field\f;}
Line 96... Line 103...
96
  \if{\test issametext NaN}{
103
  \if{\test issametext NaN}{
97
   \text{test=wims(translate internal | to , in \f)}
104
   \text{test=wims(translate internal | to , in \f)}
98
   \integer{c=wims(charcnt \test[1])}
105
   \integer{c=wims(charcnt \test[1])}
99
   \integer{c=min(50,max(6,\c+6))}
106
   \integer{c=min(50,max(6,\c+6))}
100
   \text{lengths=\lengths\c,}
107
   \text{lengths=\lengths\c,}
101
   \text{types=\types[]atext,}
108
   \text{types=\types[]\type_rep,}
102
   \text{options=| isin \f?\options[]symtext}
109
   \text{options=| isin \f?\options[]symtext}
103
  }{
110
  }{
104
   \integer{c=max(5,\c+2)}
111
   \integer{c=max(5,\c+2)}
105
   \text{lengths=\lengths\c,}
112
   \text{lengths=\lengths\c,}
106
   \text{f1=wims(nospace \f)}
113
   \text{f1=wims(nospace \f)}
Line 117... Line 124...
117
:%%%%%%%%%%%%% Now the statement in HTML. %%%%%%%%%%%%%%%%%%%%
124
:%%%%%%%%%%%%% Now the statement in HTML. %%%%%%%%%%%%%%%%%%%%
118
 
125
 
119
::You don't need to modify this in general.
126
::You don't need to modify this in general.
120
 
127
 
121
\statement{<div>\explain</div>
128
\statement{<div>\explain</div>
122
\data[1;]
129
  \data[1;]
123
\for{k=1 to \qs}{
130
  \for{k=1 to \qs}{
124
\embed{r \k,\lengths[\k]} \data[2*\k+1;]
131
    \embed{r \k,\lengths[\k]} \data[2*\k+1;]
125
}
132
  }
126
}
133
}
127
 
134
 
128
:%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5
135
:%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5
129
 
136
 
130
\answer{Field 1}{\good[1]\field[1;]}{type=\types[1]}{option=\options[1]}
137
\answer{Field 1}{\good[1]\field[1;]}{type=\types[1]}{option=\options[1]}