更多"在窗体上画一个命令按钮,名称为Command1。 Private S"的相关试题:
[单项选择]在窗体上画一个命令按钮,然后编写如下事件过程:
Private Sub Command1_Click( )
For i=1 To 4
x=4
For j=1 To 2
x=x+6
Next
Next
Print x
End Sub
程序运行后,单击命令按钮,输出结果是
A. 12
B. 13
C. 16
D. 17
[单项选择]在窗体上画1个命令按钮,并编写如下事件过程:
Private Sub Command1_Click( )
For i=5 to 1 step -0.8
Print Int(i);
Next i
End Sub
运行程序,单击命令按钮,窗体上显示的内容为
A. 5 4 3 2 1 1
B. 5 4 3 2 1
C. 4 3 2 1 1
D. 4 4 3 2 1 1
[单项选择]在窗体上画一个名称为Command1命令按钮,然后编写如下事件过程:
Private Sub Command1_Click( )
c = "ABCD" For n= 1 To 4
Print ______ Next
End Sub
程序运行后,单击命令按钮,要求在窗体上显示如下内容
D CD
BCD ABCD
则在______处填入的内容为。
A. Left(c,n)
B. Right(c,n)
C. Mid(c,n,1)
D. Mid(c,n,n)
[单项选择]在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程:
Private Sub Command1_Click( )
x = -5
If Sgn(x) Then
y = Sgn(x ^ 2)
Else
y = Sgn(x)
End If
Print y
End Sub
程序运行后,单击命令按钮,窗体上显示的是( )。
A. -5
B. 25
C. 1
D. -1
[单项选择]在窗体上画一个名称为Command1的命令按钮,然后编写如下程序:Private Sub Command1_ Click( ) Static x As Integer Static y As Integer Cls y=1 y=y+5 x=y +x Print x, yEnd Sub程序运行时,三次单击命令按钮Command1后,窗体上显示的结果为______。
A. 15 16
B. 15 6
C. 15 15
D. 5 6
[单项选择]在窗体上画一个名称为Command1的命令按钮,然后编写如下程序: Private Sub Command1_Click( ) Dim x As Integer Static y As Integer Cls x=x+5 y=y+3 Print x,y End Sub 程序运行时,两次单击命令按钮Command1后,窗体显示的结果是( )。
A. 10 6
B. 5 6
C. 5 3
D. 10 3