单项选择题
有如下事件过程: Private Sub Commaild1_Click( ) Dim i As Integer For i =1 To 2 DC Next i End Sub Sub DC( ) Dim x As Integer,m As String Static y,n x=x + 1 y=y + 1 m=m&"*":n=n &"#" Print x,y,m,n End Sub 程序运行后,输出的结果是( )。
A. 1 1 * # 1 1 * #
B. 1 1 * # 1 2 * #
C.1 1 * # 1 1 * ##
D. 1 1 * # 1 2 * ##
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有如下程序:Private Sub Commandl_Click( )Dim i As IntegerFor i=1 To 2DSNext iEnd SubSub DS( )Dim x As Integer,m As StringStatic y,nX=X + 1y=y + 1m=m & *”:n=n& # Print x,y,m,nEnd Sub程序运行后,输出的结果是( )。
A.1 1 * #
B.1 1 * #
C.1 1 * #1 1 * # 1 2 * #
D.1 1 * #1 1 * ## 1 2 * ##
点击查看答案&解析
单项选择题
有如下事件过程,当同时按下转换键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.J2EE
B.J2ME
C.J2SE
D.J2DE
点击查看答案&解析
相关试题
在窗体上画一个命令按钮,名称为Command1...