欢迎来到财会考试题库网 财会考试题库官网
logo
全部科目 > 大学试题 > 计算机科学 > 计算机程序设计 > vb考试

单项选择题

假设文本框Text1中输入了一个字母,要求判断输入的字母为"A"~"E"正确,否则显示输入错误信息,下列语句中正确的是()

    A.If "A"<=Text1.Text <="E"Then MsgBox "输入正确"Else MsgBox "输入错误"
    B.If A <=Text1.Text <=E Then MsgBox "输入正确"Else MsgBox "输入错误"
    C.If "A"<=Text1.Text Or Text1.Text <="E"Then MsgBox "输入正确"Else MsgBox "输入错误"
    D.If A <=Text1.Text Or Text1.Text <=E Then MsgBox "输入正确"Else MsgBox "输入错误"
    E.If "A"<=Text1.Text And Text1.Text <="E"Then MsgBox "输入正确"Else MsgBox "输入错误"
    F.If A <=Text1.Text And Text1.Text <=E Then MsgBox "输入正确"Else MsgBox "输入错误"

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题