已知a=-5.1,b=13,则VB表达式Int(a)+b\2 Mod 5的值为()
A.-5B.-4C.0D.1
当前题号:1 | 题型:选择题 | 难度:0.99
能完全正确表示“year是闰年”的逻辑表达式是(   )
A.year mod 4 = 0
B.year mod 400 = 0
C.(year mod 400 = 0) or (year mod 4 = 0) and (year mod 100 <> 0)
D.(year mod 400 = 0) and (year mod 4 = 0) or (year mod 100 <> 0)
当前题号:2 | 题型:选择题 | 难度:0.99
产生一个在[-10,10]中随机整数的VB表达式是(  )
A.Int(Rnd * 11) -11
B.Int(Rnd * 20)-10
C.Int(Rnd * 21) -11
D.Int(Rnd * 21)-10
当前题号:3 | 题型:选择题 | 难度:0.99
有如下 VB 程序段:
s = 0
For i = 1 To 10 
s = s + i Mod 2
Next i
Label1.Caption = Str(s) &“-”& str(i) 该程序段运行后,在标签 Label1 上显示的是(   )。
A.5-10B.5-11C.55-10D.1-11
当前题号:4 | 题型:选择题 | 难度:0.99
将数学表达式写成VB表达式,正确的是( )
A.log(x)/(a+b)B.log(x)/a+b
C.ln(x)/(a+b)D.ln(x)/a+b
当前题号:5 | 题型:选择题 | 难度:0.99
(加试题)某VB程序使用了递归函数,代码如下:
Private Sub Command1_Click()
Text1.Text = f(3)
End Sub
Function f(x As Integer) As String
If x = 1 Then  f = 1  Else  f = f(x - 1) + 2
End Function
运行程序并点击按钮Command1后,文本框Text1中显示的内容是( )
A.1B.3C.5D.7
当前题号:6 | 题型:选择题 | 难度:0.99
在Visual Basic中,若x表示能被5整除的正整数,则下列逻辑表达式的值一定为真的是(  )
A.x / 5=0B.x Mod 5=0C.Int(x\5)=0D.5 Mod x=0
当前题号:7 | 题型:选择题 | 难度:0.99
数学表达式“2n-1>0且2n-1≠1”对应的Visual Basic表达式是(  )
A.2·n-1>0 And 2·n-1<>1B.2*n>1 And Not(2*n-1=1)
C.2n-1>0 And 2n-1 ≠ 1D.2*n-1>0 And 2n-1<>1
当前题号:8 | 题型:选择题 | 难度:0.99
下列表达式中的值不为6的是( )。
A.19\3B.19/3C.Int(19/3)D.19 mod 13
当前题号:9 | 题型:选择题 | 难度:0.99
若整型变量a的值为2,b的值为3,则下列程序段执行后整型变量c的值为( )。
if a>5 then
if b<4 then c=a-b else c=b-a
else
if b>3 then c=a*b  else c=a mod b
end if
A.2B.-1C.1D.6
当前题号:10 | 题型:选择题 | 难度:0.99