试题与答案

函数过程Fun1的功能是:如果参数b为奇数,则返回值为1, 否则返回值为0。 F

题型:单项选择题

题目:

函数过程Fun1的功能是:如果参数b为奇数,则返回值为1, 否则返回值为0。
Function Fun1 (b As Integer)
if ______ Then
Fun1 =0
Else
Fun1 = 1
End If
End Function
使该功能完整,应在空行处填入以下哪条语句

A.b Mod 2<>0

B.b Mod 2 =0

C.b/2 = 1

D.b\2 =0

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0318/d7af7b223f926c4137c6d56084cd73e5.html

下面是错误答案,用来干扰机器的。

参考答案:D

试题推荐
微信公众账号搜索答案