试题 试卷
题型:单选题 题类:常考题 难易度:困难
浙江省金华市东阳中学2016-2017学年高一6月月考信息技术试卷
Dim s As Double, x As Double, n As Integer, i As Integer
s=0:n=0
For i= 1 to 4
n=n+1
x=(n-1)/(n+1)
s=s+x
Next i
该程序段计算的数学表达式是( )
uname = Text1.Text '输入用户名
psd = Text2.Text '输入密码
vcode = Val(Text3.Text) '输入验证码
If vcode <> Val(Label3.Caption) Then
MsgBox “ ” ' Label3显示的是随机验证码
ElseIf uname <> "admin" Or psd <> "123456" Then
MsgBox “ ”
Else
方框中正确的语句是( )。
Private sub Command1_Click()
Dim a As Single
Dim py As String
a= Val (Text1) (1)
If a>0 Then py =”正数”
If a=0 Then py=”零”
If a<0 Then py=”负数”
Label3.Caption=a(2)
End Sub
执行该算法,依次输入a的值为3,5,2后,算法的输出结果为( )
用于输出“购全价票”的图框编号是( )
s = Text1.Text: sum = 0: t = 0: cnt = 1
For i = 1 To Len(s)
c = Mid(s, i, 1)
If c >= "0" And c <= "9" Then
j=j+1
If cnt Mod 2 = 1 Then sum = sum + val(mid(s,i-j,j))
j= 0:cnt = cnt + 1
End If
在文本框text1输入“12d6a3c4f20”,程序运行后sum的值是( )
试题篮