有如下事件过程:Private Sub Form_KeyDown(KeyCode As Integer,Shift As Integer)If (Button And 3) =3 ThenPrint "OK"End IfEnd Sub程序运行后,为了在窗体上输出“OK”,应当按下的鼠标键是A.左键B.右键C.同时按下左键和右键D.按什么键都不显示

题目

有如下事件过程:

Private Sub Form_KeyDown(KeyCode As Integer,Shift As Integer)

If (Button And 3) =3 Then

Print "OK"

End If

End Sub

程序运行后,为了在窗体上输出“OK”,应当按下的鼠标键是

A.左键

B.右键

C.同时按下左键和右键

D.按什么键都不显示


相似考题
更多“有如下事件过程:Private Sub Form_KeyDown(KeyCode As Integer,Shift As Integer)If (Button And ”相关问题
  • 第1题:

    折半查找

    function binsearch(k:keytype):integer;

    var low,hig,mid:integer;


    正确答案:

     

    begin
    low:=1;hig:=n;
    mid:=(low+hig) div 2;
    while (a[mid].key<>k) and (low<=hig) do begin
    if a[mid].key>k then hig:=mid-1
    else low:=mid+1;
    mid:=(low+hig) div 2;
    end;
    if low>hig then mid:=0;
    binsearch:=mid;
    end;

  • 第2题:

    定义一个List对象list,使用ArrayList的构造方法进行初始化,并且要求list中必须全部存放Integer类型的对象,以下语句正确的是()。

    A.List list = new ArrayList ();

    B.List list = new ArrayList<Integer>();

    C.ArrayList<Integer> list = new List<Integer>();

    D.List<Integer> list = new ArrayList<Integer>();


    List list = new ArrayList ();

  • 第3题:

    定义一个List对象list,使用ArrayList的构造方法进行初始化,并且要求list中必须全部存放Integer类型的对象,以下语句正确的是()。

    A.List list = new ArrayList ();

    B.List list = new ArrayList<Integer>();

    C.List<Integer> list = new ArrayList<Integer>();

    D.ArrayList<Integer> list = new List<Integer>();


    A

  • 第4题:

    定义一个List对象list,使用ArrayList的构造方法进行初始化,并且要求list中必须全部存放Integer类型的对象,以下语句正确的是()。

    A.List list = new ArrayList<Integer>();

    B.List list = new ArrayList ();

    C.List<Integer> list = new ArrayList<Integer>();

    D.ArrayList<Integer> list = new List<Integer>();


    List list = new ArrayList ();

  • 第5题:

    8、下面哪些是将分数化为浮点数的正确定义?

    A.type Fraction = (Integer, Integer) rateq :: Fraction -> Float rateq (a,b) = a/b###SXB###B.type Fraction = (Integer, Integer) rateq :: Fraction -> Float rateq (a,b) = (fromInteger a)/ (fromInteger b)###SXB###C.type Fraction = (Integer, Integer) rateq :: Fraction -> Float rateq (a,b) = fromInteger (a/b)###SXB###D.type Fraction = (Integer, Integer) rateq :: Fraction -> Float rateq (a,b) = (fromIntegral a)/ (fromIntegral b)###SXB###E.ty
    A

  • 第6题:

    11、下面哪些定义是类型正确的?

    A.f :: (Integer, Integer) -> Float f (x,y) = x / y

    B.f :: (Integer, Integer) -> Float f (x,y) = (fromInteger x) / (fromInteger y)

    C.f :: (Integer, Integer) -> Float f (x,y) = 3*x + y

    D.f :: (Integer, Integer) -> Integer f (x, y) = 3*x + y


    AFT 通常由含有一个双氢呋喃环和一个氧杂萘邻酮(香豆素)的基本架构单位构成 AFT 分为 黄曲霉毒素B1(AFB1)、黄曲霉毒素 B2 (AFB2) 黄曲霉毒素G1(AFG1)、黄曲霉毒素 G2(AFG2) 黄曲霉毒素M1(AFM1)、黄曲霉毒素 M2(AFM2) B1、G1的呋喃环氢键异构。M1型氢键变为羟基。 1比2呋喃环上多了一个双键。