试题 试卷
题型:单选题 题类:常考题 难易度:普通
浙江省绍兴市2017-2018学年高二下学期选考信息技术适应性考试试卷
If x>100 then
Y=12
① x>60 then
Y=8
Else
y=5
②
该程序段中,①处填写的内容为{#blank#}1{#/blank#};②处填写的内容为{#blank#}2{#/blank#}。
实现上述功能的VB程序如下,请回答下列问题:
k = 1
For j = 2 To 100
If a(j) > a(k) Then k = j
Next j
x = a(k) 该程序段执行后,变量x中存储的是( )
Private Sub Command 1_Click()
Dim i As Integer
Dim t As Integer
Dim s As String
i = 1:t = 1:n = Text1.Text
List1.Clear
Do While t< = n
s = s + “*”
If i = t Then
List1.AddItem s
t = t + 1
i=0
End If
i = i + 1
Loop
End Sub
试题篮