A . 正确
B . 错误
[单选题]编写如下事件过程: Private Sub Form-MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Shift=6 And Button=2 Then Print"Hello" End If End Sub 程序运行后,为了在窗体上输出“Hello”,应在窗体上执行以下( )操作。A.同时按下Shift键和鼠标左键B.同时按下Shift键和鼠标右键C.同时按下Ctrl、Alt键和鼠标左键D.同
[单选题]编写如下事件过程: Option Explicit Private Sub Form_Click() Dim Str As String, I As Integer Open "examp" For Output As 1 For I=1 To 5 Str=Chr(I+64) Print #1,Str; Next I Close 1 Open”examp',For lnput AS 2 Str=Input(10,#2) Print Str; Close 2 End Sub 程序运行后,单击
[判断题] 事件过程由某个用户事件或系统事件触发执行,它不能被其它过程调用。A . 正确B . 错误
[单选题]编写如下事件过程: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.同时按下
[单选题]编写如下事件过程: 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.
[单选题]编写下列事件过程和函数过程:Private Sub Commandl Click()D.im num(1 To 6)As Singlenum(1)=103:num(2)=190:num(3)=0num(4)=32:num(5)=-56:num(6)=100PrintPrint p2(6,num())E.nd SubPrivate Function p2(ByVal n As Integer,number()As Single)As Integerp2=number(1)F.or j=2 To n
[单选题]编写如下事件过程:Private Sub Form_keyDown(KeyCode As Integer,Shift As Integer)Print Chr(KeyCode)E.nd SubPrivate Sub Form_Keypress(KeyAscii As Integer)Print Chr(KeyAscii)E.nd Sub在一般情况下(即不按住Shift键和锁定大写键时) 运行程序,若按"T"键,则程序输出的结果是A.T TB.t TC.T TD.t t
[单选题]编写如下事件过程: Private Sub Form_Activate() Dimscore(1 to 3)As Integer Dimi As Integer Dim t As Variant Fori= 3 To 1 Step-1 score(i)=2*i Nexti ForEach t Inscore Printt Next End Sub 程序运行后窗体上显示的值是( )。A.642B.246C.2D.6
[单选题]有如下事件过程:Private Sub Form_KeyDown(KeyCode As Integer,Shift As Integer)If (Button And 3) =3 ThenPrint "OK"E.nd IfE.nd Sub程序运行后,为了在窗体上输出“OK”,应当按下的鼠标键是A.左键B.右键C.同时按下左键和右键D.按什么键都不显示
[单选题]编写如下事件过程: Private Sub Form_MouseMove(ButtonAsInteger,ShiftAsInteger,X As Single,YAsSingle) Cls If(Button Andl)ThenPrint"你好" End Sub 程序运行后,为了在窗体上显示“你好”,应在窗体上执行以下( )操作。A.只能按下左按键并拖动B.只能按下右按键并拖动C.只能按下左按键D.只能按下右按键