下列VB程序段功能为:字符串s1、s2仅由字母组成,长度相同,在忽略大小写的情况下判断两者是否相同,结果显示在Label1中。
For i = 1 To Len(s1)
c1 = Mid(s1, i,1): c2 = Mid(s2, i, 1)
If Then
If Then Exit For '退出For循环
If Then Exit For
If Then Exit For
End If
Next i
If i > Len(s1) Then Label1.Caption =“相等” Else Label1.Caption =“不相等”
上述程序段中方框处可选语句为:
①Abs (Asc(c1) - Asc(c2)) <> 32 ②c1 <> c2
③c1 >= "a" And c2 >= "a" ④c1 <= "Z" And c2 <= "Z"
则(1)(2)(3)(4)处语句依次可为( )
A . ①②③④
B . ①③④②
C . ②①④③
D . ②④③①
答案:D