21世纪教育网
设计作品0
B. C.
D. 有如下VB程序段: s ="" For i = 1 To Len(Text1. Text) ch = Mid(Text1. Text, i, 1) If ch >= "a" And ch <= "z" Then n = (Asc(ch) - Asc("a") + 4) Mod 26 s = s + Chr(Asc("a") + n) ElseIf ch >= "A" And ch <= "Z" Then n = (Asc(ch) - Asc("A") + 4) Mod 26 s = s + Chr(Asc("A") + n) Else s = s + ch End If Next i Text2. Text = s 文本框Text1的内容为“Python3.5”。执行程序后,文本框Text2中显示的内容是()
A. tcxlsr
B. Tcxlsr
C. tcxlsr3.5
D. Tcxlsr3.5 某vb程序段如下, S=”26170534” : n=len(s) :y= “” For i=1 to n arry(i)=mid(s,i,1) Next i For i=1 to n k=i For j=i to n step 2 If arry (j)< arry (k) then k=j Next j If k<>i then t= arry (k):a(k)= arry (i): arry (i)=t y=y& arry (i) Next i Label1.caption=y 该程序运行后,标
转载请注明出处!本文地址:https://www.docer.com/preview/21451694
关注稻壳领福利
举报