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

    s = "Hello, Taizhou!"

    n= Len(s): ans =""

    For i=1 To n

        c=Mid(s, i, 1))

        If Abs(i-n)<n\2 Then

            If c>="a" And c<="z" Then c=Char(Asc(c)-Asc("a")+Asc("A"))

        End If

            ans=ans+c

        Next i

        Labell.Caption=ans

    执行上述程序段后,标签Labell中输出的内容为(  )

    A . HELLO,Taizhou! B . HellO,TAIZHOU! C . Hello,TAIZHOU! D . Hello,TAIzhou!

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