Rev 6132 | Rev 13488 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2071 | zjchen | 1 | type=datalist |
2 | textarea="datatrue datafalse explain" |
||
3 | |||
4 | :在表中选择正确的句子. |
||
5 | 给出一些句子, 需要判断哪些是正确的. |
||
6 | 每次出现的正确句子个数不必相同. |
||
7 | <p> |
||
8002 | bpr | 8 | 句子越多, 随机性和可重复性越好. |
9 | 当然你也可以选得恰到好处. |
||
2071 | zjchen | 10 | 如同一个有好几个正确答案的多重选择题. |
11 | avec plusieurs bons choix. |
||
12 | <p> |
||
8002 | bpr | 13 | 模块作者: Gang Xiao <qualite@wimsedu.info> |
2071 | zjchen | 14 | |
15 | :%%%%%%%%%%%%%%%%% 注 意 %%%%%%%%%%%%%%%%%%%% |
||
16 | |||
17 | 如果你删去了本范例中的标签 (即跟随在冒号 ':' 后面的那几行), |
||
18 | 那么也请删去这个头部, 否则有可能回不到 Createxo. |
||
19 | |||
20 | :%%%%%%%%%%%%%%%%% 被重新定义的参数示例 %%%%%%%%%%%%%%%%%% |
||
21 | |||
22 | :\title{多个是非题} |
||
23 | :\author{XIAO Gang} |
||
8002 | bpr | 24 | :\email{qualite@wimsedu.info} |
2071 | zjchen | 25 | |
26 | :出现的句子数. |
||
27 | \integer{tot=4} |
||
28 | |||
29 | :每个练习中正确句子的最小个数. 至少是 1. |
||
30 | \integer{mintrue=1} |
||
31 | |||
32 | :每个练习中错误句子的最小个数. 至少是 1. |
||
33 | \integer{minfalse=1} |
||
34 | |||
35 | :正确的句子. 一行一句, 不能有分号 ';'. |
||
36 | 避免太长的句子 ! |
||
37 | $embraced_randitem |
||
38 | \matrix{datatrue= |
||
39 | 电压固定时, 通过电阻器的电流与它的电阻成反比. |
||
40 | 电流固定时, 电阻器的电压与它的电阻成正比. |
||
41 | 通过电阻器的电流与其两端的电压成正比. |
||
42 | 电阻器上消耗的电能与其两端的电压平方成正比. |
||
43 | 电阻器上消耗的电能与通过电流的平方成正比. |
||
44 | 当交流电压固定时, 通过电容器的电流与它的电容成正比. |
||
45 | 电流相同时, 加于电容器上的交流电压与电容成反比. |
||
46 | 当交流电压固定时, 通过线圈的电流与它的电感成反比. |
||
47 | 电流相同时, 加于线圈上的交流电压与电感成正比. |
||
48 | 电容器不消耗电能. |
||
49 | 线圈不消耗电能. |
||
50 | } |
||
51 | |||
52 | :错误的句子. 一行一句, 不能有分号 ';'. |
||
53 | 避免太长的句子 ! |
||
54 | $embraced_randitem |
||
55 | \matrix{datafalse= |
||
56 | 电压固定时, 通过电阻器的电流与它的电阻成正比. |
||
57 | 电流固定时, 电阻器的电压与它的电阻成反比. |
||
58 | 电流固定时, 电阻器的电压与它的电阻无关. |
||
59 | 电压固定时, 通过电阻器的电流与它的电阻无关. |
||
60 | 通过二极管的电流与所加电压成正比. |
||
61 | 电阻器上消耗的能量与其两端的电压成正比. |
||
62 | 电阻器上消耗的能量与通过的电流成正比. |
||
63 | 当交流电压固定时, 通过电容器的电流与它的电容成反比. |
||
64 | 电流相同时, 加于电容器上的交流电压与电容成正比. |
||
65 | 当直流电压固定时, 通过电容器的电流与它的电容成正比. |
||
66 | 当电流固定时, 加于电容器的直流电压与它的电容成反比. |
||
67 | 当电流固定时, 加于电容器的交流电压与它的电容无关. |
||
68 | 当交流电压固定时, 通过线圈的电流与它的电感成正比. |
||
69 | 电流相同时, 加于线圈上的交流电压与电感成反比. |
||
70 | 电容器上消耗的能量与其上的{电压,电压平方}成正比. |
||
71 | 电容器上消耗的能量与通过的{电流,电流平方}成正比. |
||
72 | 理想线圈上消耗的能量与其上的{电压,电压平方}成正比. |
||
73 | 理想线圈上消耗的能量与通过的{电流,电流平方}成正比. |
||
74 | } |
||
75 | |||
76 | :选项. |
||
77 | 如果想使部分正确的回答也能得分, 可以加上选项 "split". |
||
78 | \text{option=split} |
||
79 | |||
80 | :The texte qui explique ce qu'il faut faire. |
||
81 | $embraced_randitem |
||
82 | \text{explain=下列判断中哪些是正确的 ? 把它们标记出来.} |
||
83 | |||
84 | :%%%%%%%%%%%%%% 不要改动下面这段命令 %%%%%%%%%%%%%%%% |
||
85 | |||
86 | \text{datatrue=wims(nonempty rows \datatrue)} |
||
87 | \text{datafalse=wims(nonempty rows \datafalse)} |
||
88 | \integer{truecnt=rows(\datatrue)} |
||
89 | \integer{falsecnt=rows(\datafalse)} |
||
90 | \integer{tot=\tot > min(\truecnt,\falsecnt)?min(\truecnt,\falsecnt)} |
||
91 | \integer{mintrue=\mintrue<1?1} |
||
92 | \integer{minfalse=\minfalse<1?1} |
||
93 | \integer{mintrue=\mintrue>\tot-1?\tot-1} |
||
94 | \integer{minfalse=\minfalse>\tot-1?\tot-1} |
||
95 | \integer{tot<\mintrue+\minfalse?\mintrue+\minfalse} |
||
96 | \text{tsh=shuffle(\truecnt)} |
||
97 | \text{fsh=shuffle(\falsecnt)} |
||
98 | \text{true=row(\tsh,\datatrue)} |
||
99 | \text{false=row(\fsh,\datafalse)} |
||
100 | \integer{truepick=randint(\mintrue..\tot-\minfalse)} |
||
101 | \text{pick=row(1..\truepick,\true);row(1..\tot-\truepick,\false)} |
||
102 | \text{ind=wims(makelist 1 for x=1 to \truepick),wims(makelist 0 for x=1 to \tot-\truepick)} |
||
103 | |||
104 | \text{sh=shuffle(\tot)} |
||
105 | \text{ind=item(\sh,\ind)} |
||
106 | \text{pick=row(\sh,\pick)} |
||
107 | \text{pick=wims(embraced randitem \pick)} |
||
108 | \text{ans=positionof(1,\ind)} |
||
109 | \text{list=wims(values x for x=1 to \tot)} |
||
110 | \text{explain=wims(embraced randitem \explain)} |
||
111 | |||
112 | :%%%%%%%%%%%%% 现在可以用 html 格式填入问题的陈述 %%%%%%%%%%%%%%%%%%%%%%%%% |
||
113 | |||
114 | ::一般情况下没有必要改动它 |
||
115 | |||
116 | \statement{\explain |
||
117 | |||
6132 | bpr | 118 | <table class="wimsnoborder wimscenter"> |
2071 | zjchen | 119 | \for{i=1 to \tot}{ |
120 | <tr><td nowrap>\embed{reply 1,\i}.</td> |
||
121 | <td>\pick[\i;]</td></tr> |
||
122 | } |
||
6132 | bpr | 123 | </table> |
2071 | zjchen | 124 | } |
125 | |||
126 | :%%%%%%%%%%%%% 不要改动以下的命令 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
||
127 | |||
128 | \answer{The reply}{\ans;\list}{type=checkbox}{option=\option} |
||
129 |