题型:填空题 题类:模拟题 难易度:困难
浙江省“七彩阳光”新高考研究联盟2017届高三下学期信息技术期初联考试卷
Dim m2 As String
Private Sub Command1Click()
Dim flag(1 To 26) As Boolean
Dim num As Integer,t As Integer
Randomize
num = 1
Text3.Text = " "
For i = 1 To 26
flag(i) = False
Next i
Do While num <= 26
x = Int(Rnd * 26) + 97
①
If flag(t) = False Then
m2 = m2 + Chr(x)
num = num + 1
②
End If
Loop
Text3.Text = m2
End Sub
Private Sub Command2Click()
Dim s As String, m As String, result As String
Dim k As String, c As Integer
s = Text1.Text
m = "abcdefghijklmnopqrstuvwxyz"
For i = 1 To Len(s)
k = Mid(s, i, 1)
If k >= "A" And k <= "Z" Then
k = Chr(Asc(k) + 32)
End If
c = 1: continue = True
Do While ③
If k = Mid(m, c, 1) Then
continue = False
End If
c = c + 1
Loop
④
Next i
Text2.Text = result
End Sub
程序①处的代码是
程序②处的代码是
程序③处的代码是
程序④处的代码是
加密规则如下表所示:
原字 |
A |
B |
C |
… |
X |
Y |
Z |
a |
b |
c |
… |
x |
y |
z |
密字 |
z |
y |
x |
… |
c |
b |
a |
Z |
Y |
X |
… |
C |
B |
A |
注:“A”的ASCⅡ码值是65,“a”的ASCI码值是97。
试题篮