单项选择题

下列程序执行的结果是______。
Private Sub Command1_Click()
x=25
If x>0 Then y=1
If x>10 Then y=2
If x>20 Then y=3
If x>30 Then y=4
Print y
End Sub

A.1
B.2
C.3
D.4
<上一题 目录 下一题>
热门 试题

单项选择题
有如下程序,运行后输出s的值是______。 For j=1 To 20 x=2*j-1 If x Mod 3=0 0r x Mod 7=0 Then s=s+1 Next j Print s
A.5
B.9
C.11
D.15
单项选择题
通用对话框CommonDialog中可以使用的6种方法为______。
A.ShowOpen
ShowSave
ShowColor
ShowFont
ShowPrinter
ShowHelp
B.ShowOpen
ShowClose
ShowColor
ShowFont
ShowPrinter
ShowHelp
C.ShowOpen
ShowOut
ShowSave
ShowFont
ShowPrinter
ShowHelp
D.ShowOpen
ShowClose
ShowFont
ShowSave
ShowPrinter
ShowHelp
相关试题
  • 在执行以下程序时,为了使输出结果为t=4...
  • 在窗体上画一个命令按钮,然后编写如下代码...
  • 在窗体上画两个命令按钮,然后编写以下代码...
  • 软件工程中,软件配置由配置项来表示,以下...
  • 只能用来显示字符信息的控件是______。