当前位置: 高中信息技术 / 单选题
  • 1. (2020高三上·绍兴月考) 有如下VB程序段:

    Dim i As Integer, c As String, s As String, t As Integer

    Dim s2 As String, pwd As String

       s= Text1.Text: pwd = "71zhYEAR":s2= ":t= 0

       For i= 1 To Len(s)

          c= Mid(s, i, 1)

          If c>= "0" Andc <= "9" Then

             t=t* 10 + Val(c)

          Else

             s2 = s2 + Mid(pwd, tMod8 + 1, 1)

          End If

       Next i

       Text2.Text= s2

    运行该程序段,在文本框Text1中输入“20B13A8",文本框Text2输出的是(      )

    A . hY B . YE C . YE7 D . hYA

微信扫码预览、分享更方便