当前位置: 高中信息技术 / 单选题
  • 1. (2020高二上·诸暨期末) 有如下VB程序段:

    s1 = Text1.Text

    s2 = ""

    For i = 1 To Len(s1)

        c = Mid(s1, i, 1)

        If c >= "A" And c <= "Z" Then

            c = Chr(Asc(c) + 32)

        ElseIf c >= "0" And c <= "9" Then

            c = Chr((Asc(c) - Asc("0") + 2) Mod 10 + Asc("0"))

        End If

        s2 = c + s2

    Next i

    Text2.Text = s2

    该程序段运行后,若在文本框Text1中输入“A19bCD”,则文本框Text2中显示的内容是(    )

    A . a19bcd B . a31bcd C . dcb31a D . dcb13a

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