万能百科  > 计算机   > 

[单项选择题] 窗体上没有任何控件,有下列下列程序: Option Base 1 Private Sub Form_KeyPress(KeyAscii As

2021-07-20   

[单项选择题] 窗体上没有任何控件,有下列下列程序:

Option Base 1

Private Sub Form_KeyPress(KeyAscii As Integer)

  a = Array(5, 2, 7, 6, 9)

  x = a(1)

  y = 1

  If KeyAscii = 13 Then

    For i = 2 To 5

      If a(i)> ml Then

        x = a(i)

        y = i

      End If

    Next i

  End If

  Print x; y

End Sub

A.5 1

B.9 5

C.2 2

D.7 3

正确答案:

B

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签