已知小写字母a的ASCII码为97,大写字母A的ASCII码为65,以下程序的结果是 ______。main(){unsigned int a=32,b=66;printf("%c\n",a|B) ;}
A.66
B.98
C.b
D.B
已知小写字母a的ASCII码为97,大写字母A的ASCII码为65,以下程序的结果是 ______。main(){unsigned int a=32,b=66;printf("%c\n",a|B) ;}
A.66
B.98
C.b
D.B
在窗体上画一个名称为Text1的文本框,要求文本框只能接收大写字母的输入。以下能够正确实现该操作的事件过程是______。
A.Private Sub Text1_ KeyPress (KeyAscii As Integer) IfKeyAscii < 65 Or KeyAscii > 9t Then MsgBox “请输入大写字母” End If End sub
B.Private Sub Text1_ KeyDown (KeyCode As Integer, Shift As Integer) IfKeyCode < 65 Or KeyCode > 91 Then MsgBox “请输入大写字母” End If End sub
C.Private Sub Text1_ MouseDown (Button As Integer, _ Shift As Integer, X As Single, YAs SinglE)IfAsc (Text1.Text) < 65 Or Asc (Text1. Text) > 91 Then MsgBox “请输入大写字母” End If End sub
D.Private Sub Text1_ Change() IfAsc(Text 1.Text) < 65 Or Asc(Text1. Text) > 91 Then MsgBox “请输入大写字母” End If End sub
各种计算机中,字符的ASCII码不完全相同。但是对英文26个字母而言,其大写字母与小写字母的序号的是相同的。下面的说法正确的是()。
A、大写字母的序号依次为97~122
B、小写字母的序号依次为97~122
C、大写字母的序号依次为1~26
D、小写字母的序号依次为1~26