题目内容:
下面4个CT函数中是用来判断用户输入的数是否为奇数的,是奇数的返回1,否则返回0,其中正确的是( )。
A.FunctionCT(ByValaAsInteger) IfaMod2=0Then
Return0
Else
Return1
Endif
EndFunction
B.FunctionCT(ByValaAsInteger)
IfaMod2=0Then
CT=0
Else
CT=1
Endif
EndFunction
C.FunctionCT(ByValaAsInteger)
IfaMod2=0Then
CT=1
Else
CT=0
Endif
EndFunction
D.FunctionCT(ByValaAsInteger)
IfaMod2=0Then
Return1
Else
Return0
Endif
EndFunction
参考答案:
答案解析: