问题代码 |
相关性 |
问题类型 |
问题
|
name |
1 |
text |
你叫什么名字?
|
age |
1 |
text |
你多大了?
|
badage |
!is_empty(age) |
expr |
{(age<16) or (age>80)}
|
agestop |
badage |
message |
对不起,{name}, 对这个测试而言,你太{if( (age<16),'年轻',if( (age>80),'老','middle-aged') ) } 了。
|
kids |
!badage |
yesno |
你有孩子吗?
|
parents |
1 |
expr |
{!badage && kids=='Y'}
|
numKids |
parents |
text |
你有几个孩子?
|
kid1 |
parents && numKids >= 1 |
text |
你的第一个孩子多大了?
|
kid2 |
parents && numKids >= 2 |
text |
你的第二个孩子多大了?
|
kid3 |
parents && numKids >= 3 |
text |
你的第三个孩子多大了?
|
kid4 |
parents && numKids >= 4 |
text |
你的第四个孩子多大了?
|
kid5 |
parents && numKids >= 5 |
text |
你的第五个孩子多大了?
|
sumage |
1 |
expr |
{sum(kid1.NAOK,kid2.NAOK,kid3.NAOK,kid4.NAOK,kid5.NAOK)}
|
report |
parents |
yesno |
{name},你现在{age} 岁,并且有{numKids}个孩子. The sum of ages of your first {min(numKids,5)} kids is {sumage}
|