单项选择题
单击命令按钮时,下列程序的执行结果是 Private Sub Book(x As Integer) x=x * 2 + l If x<6 Then Call Book(x) End If X=X * 2 + 1 Print x; End Sub Private Sub Command2_Click() Book2 End Sub
A.23 47
B.10 36
C.22 44
D.24 50
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有如下事件过程,当同时按下转换键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.程序出错
点击查看答案&解析
单项选择题
有如下程序: Private Sub Command1 Click() Dim a As Single Dim b As Single a=5:b=4 Call S(a,B) End Sub Sub S(x As Single,y As Single) t=x x=t y y=t Mod y End Sub 在调用运行上述程序后,a和b的值分别为
A.0 0
B.1 1
C.2 2
D.1 2
点击查看答案&解析
相关试题
串的长度是
以下能够正确计算n!的程序是
下列程序段,在运行时最后输出的内容是 a...
以下不属于对象的基本特点的是
下列程序段的执行结果为 X=2 Y=5 If...