题型:单选题 题类:模拟题 难易度:困难
浙江省2021届高三上学期1月普通高校招生选考科目考试方向性信息技术试卷
例如:字符串“2021xuankao", 去重为“201xuanko".
Dim c(0 To 35) As Integer
s = Text1.Text: res =
For i=1 To Len(s)
ch=Mid(s,i,1)
If ch>="0" And ch<="9" Then
k = Val(ch) + 26
Else
End If
If c(k)=1 Then res=res+ch
Next i
Text2.Text = res
上述程序段中方框处可选语句为:
①k = Asc(ch) - Asc("a") ②k = Ase(ch) - Ase("A") ③e(k) = c(k) + 1 ④c(k) = 1 ⑤If k =0 Thenk=k+ 32 ⑥If k>= 32 Then k=k-32
则①②③处语句依次可为( )
试题篮