题目内容:
设有分段函数:以上表示上述分段函数的语句序列中错误的是:( )。
A.SelectCasex
CaseIs<0
Y=5
CaseIs<=5,Is>0
Y=2*x
Caseelse
Endselect
B.Ifx<0Then
y=5
Elseifx<=5then
y=2*x
Else
y=x*x+1
Endif
C.y=iif{x<0.5,iif(x<=5.2*x,x*x+1)}
D.Ifx<0Theny=5
Ifx<=5andx>=0theny=2*x
Ifx>5theny=x*x+1
参考答案:
答案解析: