试题

试题 试卷

logo

题型:单选题 题类:常考题 难易度:普通

浙江省诸暨市2020-2021学年高二上学期信息技术期末考试试卷

有如下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
举一反三
返回首页

试题篮