下列说法正确的是( )
输入s=“101001”,b=0,执行这部分流程后,输出b的结果是( )
c = Text1.Text
s1 = "jiayou!" s2 = s1 + s1
For i =1 to len(s1)
If c = Mid(s2, i, Len(s1)) Then Exit For
Next i
Label1.Caption = Str(i)
程序执行完后,Label1中显示的内容是4,则Text1中输入的内容是( )
n = 4
For i = 1 To 25
j = 1: a(j) = a(j) + 1
Do While a(j) = 4
a(j) = 0
j = j + 1
a(j) = a(j) + 1
Loop
For i = 1 To n
s = Str(a((i + 1) Mod 4 + 1)) + s
数组a(1)至a(4)初值均是0,执行该程序后,s的值是( )
For i = 1 To ①
k = i
For j = i + 1 To ②
If a(j) < a(k) Then k = j
Next j
If k <> i Then
t = a(k)
a(k) = a(i)
a(i) = t
End If
s = s + Str(a(i))
If ③ Then
List1.AddItem s: s = ""
划线处的代码应为( )
i = 1: j = 9
k= Int(Rnd * 6) * 10 + Int(Rnd * 6)
Do While i <= j
m = (i + j) \ 2
If a(m) Mod 10 > k Mod 10 Then
j = m - 1
Else
i = m + 1
已知数组a(1) 至a(9)中的值分别是“21,13,23,43,15,45,47,48,48”,运行该程序段后,j的值不可能是( )
图a