网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有如下事件过程,当同时按下转换键Shift和功能键F5时其最后输出的信息是
Const ShiftKey=1
Const CtrlKey=2
Const Key_F5=&H74
Const Key_F6=&H75
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode=Key_F5 And Shift=ShiftKey Then
Print "Press Shift+F5"
ElseIf KeyCode=Key_F6 And Shift=CtrlKey Then
Print "Press Ctrl+F6"
End If
End Sub( )。
A.无任何信息
B.Press Shift+F5
C.Press Ctrl+F6
D.程序出错
参考答案
更多 “ 有如下事件过程,当同时按下转换键Shift和功能键F5时其最后输出的信息是Const ShiftKey=1Const CtrlKey=2Const Key_F5=H74Const Key_F6=H75Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)If KeyCode=Key_F5 And Shift=ShiftKey ThenPrint "Press Shift+F5"ElseIf KeyCode=Key_F6 And Shift=CtrlKey ThenPrint "Press Ctrl+F6"End IfEnd Sub( )。A.无任何信息B.Press Shift+F5C.Press Ctrl+F6D.程序出错 ” 相关考题
考题
编写如下事件过程,当程序运行后,为了在窗体上输出BBBB,应执行的操作为 ______ 。 Private Sub Form_MouseDown(Button As Integer,_ Shift As Integer,X As Single,Y As Single) If Shift = 6 And Button = 2 Then Print "BBBB" EndIf End SubA.同时按下Shift 键和鼠标左键B.同时按下Shift键和鼠标右键C.同时按下Ctrl、Alt键和鼠标左键D.同时按下Ctrl, Alt键和鼠标右键
考题
编写如下事件过程: Private Sub Form MouseDown(Button As Integer,Shift As Integer,X As Single, Y As Single) If Shift=6 And Button=2 Then Print "BBBB" End If End Sub 程序运行后,为了在窗体上输出“BBBB”,应执行的操作为A.同时按下Shift键和鼠标左键B.同时按下Ctrl、Alt键和鼠标右键C.同时按下Shift键和鼠标右键D.同时按下Ctrl、Alt键和鼠标左键
考题
编写如下事件过程:Private Sub Form_ MouseDown(Button As Integer,Shift As Integer,X As Single, Y As Single) If Shift=6 And Button=2 Then Print "BBBB" End IfEnd Sub程序运行后,为了在窗体上输出“BBBB”,应执行的操作为______。A.同时按下Shift键和鼠标左键B.同时按下Shift键和鼠标右键C.同时按下Ctrl、Alt键和鼠标左键D.同时按下Ctrl、Alt键和鼠标右键
考题
编写如下事件过程: Private Sub Form. MouseDown(Button As Integer,Shift As Integer,X As Single, Y As Single) If Shift=6 And Button=2 Then Print "BBBB" End If End Sub 程序运行后,为了在窗体上输出“BBBB”,应执行的操作为 ______。A.同时按下Shift键和鼠标左键B.同时按下Shift键和鼠标右键C.同时按下Ctrl、Alt键和鼠标左键D.同时按下Ctrl、Alt键和鼠标右键
考题
编写如下事件过程:程序运行后,为了在窗体上输出“BBBB”,应执行的操作为( )。A. 同时按下Shift键和鼠标左键B. 同时按下Shift键和鼠标右键C. 司时按下Ctrl、Alt键和鼠标左键D. 同时按下Ctrl、Alt键和鼠标右键
考题
编写如下事件过程: Private Sub Form. Mouse Down(Button As Integer,Shift As Integer,X As Single, Y As Single) If Shift=6 And Button=2 Then Print"BBBB" End If End Sub 程序运行后,为了在窗体上输出"BBBB",应执行的操作为_______。A.同时按下Shift键和鼠标左键B.同时按下Shift键和鼠标右键C.同时按下Ctrl、Alt键和鼠标左键D.同时按下Ctrl、Alt键和鼠标右键
考题
有如下事件过程,当同时按下转换键Ctrl和功能键F6时,最后输出的信息是 Const ShiftKey=1 Const CtrlKey=2 Const Key_F5=H74 Const Key_F6=H75 Private Sub Text1_KeyDown(KeyCode As Integer,Shift As Integer) If KeyCode=Key_F5 And Shift=ShiftKey Then Print"Press Shift+F5" Elself Key Code=Key_F6 And Shift=CtrlKey Then Print"Press Ctrl+F6" End If End SubA.无任何信息B.Press Shift+F5C.Press Ctrl+F6D.程序出错
考题
有如下事件过程,当同时按下转换键Shift和功能键F5时其最后输出的信息是 Const ShiftKey=1 Const CtrlKey=2 Const Key_F5=H74 Const Key_F6=H75 Private Sub Text1_KeyDown(KeyCode As Integer,Shift As Integer) If KeyCode=Key_F5 And Shift=ShiftKey Then Print"Press Shift+F5" ElseIf KeyCode=Key_F6 And Shift=CtrlKey Then Print"Press Ctrl+F6" End If End SubA.无任何信息B.Press Shift+F5C.Press Ctrl+F6D.程序出错
考题
编写如下事件过程; Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X AS Single, Y As Single) If Shif=6 And Button=2 Then Print"BBBB" End If End Sub 程序运行后,为了在窗体上输出“BBBB”,应执行的操作为______。A.同时按下Shift键和鼠标左键B.同时按下Shift键和鼠标右键C.同时按下Ctrl、Alt键和鼠标左键D.同时按下Ctrl、Alt键和鼠标右键
热门标签
最新试卷