题型:综合题 题类:常考题 难易度:普通
浙江省杭州市第二中学2020届高三上学期信息技术第一次月考试卷
为实现上述功能请在划线处填上合适代码
Private Sub confirm_Click()
Dim i As Integer, j As Integer
Dim n As Integer, m As Integer Dim k As Integer, s As String Const length=6
n=Val(Text1.Text)i=1
List1.Clear
s=""
For j=1Tolength
k=Int(Rnd()*3)+1
If k=1Then
m=Int(Rnd()*26)+1
s=s+Chr(Asc("a")+m-1)
ElseIf k=2Then
m=Int(Rnd()*26)+1
s=s+Chr(Asc("A")+m-1)
Else
m=⑴
s=s+Chr(Asc("0")+m-1)
EndIf
Next j
List1.AddItemStr(i)+""+s
⑵
Loop
End Sub
试题篮