试题 试卷
题型:单选题 题类:常考题 难易度:容易
广西壮族自治区普通高中2018年6月信息技术学业水平考试试卷
Dim min As Single , d2 As Double , abc As String
则变量min的类型是({#blank#}1{#/blank#}) ,变量d2的类型是({#blank#}2{#/blank#}) ,变量abc的类型是({#blank#}3{#/blank#})。
A.可变类型 B.单精度型 C.双精度型 D.字符串型
Private Sub Command1_Click()
Dim a(0 To 5) As Integer
Dim i As Integer ’①
a(0) = 1 '②
For i = 1 To 5
a(i) = 2 * a(i - 1) + 1 '③
Next i
Text1.Text = Str(a(6)) '④
End Sub
s = "2019.06 Visual Basic 6.0": n = 0 For i = 1 To Len(s)
ch = Mid(s, i, 1)
If ch >= "0" And ch <= "9" Then
m = Asc(ch) - Asc("0") + 1
a(m) = a(m) + 1
End If
For i = 1 To 10
If a(i) > 1 Then n = n + i
数组 a 各元素的初始值都为0,执行该程序段后,则变量n的值为( )
a=[20,32,56,12,48]
maxx=a[0]
for k in ①:
if maxx<k:
②
print( ③ )
试题篮