单项选择题

下列各种形式的循环中,输出“*”的个数最少的循环是( )

A.a=5:b=8
Do

Print " * "

a=a+1
Loop While a<b

B.a=5:b=8
Do

Print " * "

a=a+1
Loop Until a<b
C.a=5:b=8
Do Until a-b

Print " * "

b=b+1
Loop

D.a=5:b=8
Do Until a>b

Print " * "

a=a+1
Loop
<上一题 目录 下一题>
热门 试题

单项选择题
设已经在“菜单编辑器”中设计了窗体的快捷菜单,其顶级菜单为Bs,取消其“可见”属性,运行时,在以下事件过程中,可以使快捷菜单响应鼠标右键的是( )
A.Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
If Button=2 Then PopupMenu Bs,2
End Sub
B.Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
PopupMenu Bs
End Sub
C.Private Sub Form—MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
PopupMenu Bs,0
End Sub
D.Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
If(Button=vbLeftButton)0r(Button=vbRightButton)Then PopupMenu Bs
End Sub
单项选择题
要将名为MyForm的窗体显示出来,正确的使用方法是( )
A.MyForm.Show
B.Show.MyForm
C.MyForm Load
D.MyForm Show
相关试题
  • 在菜单编辑器中建立了一个菜单,名为pmenu...
  • 在窗体上画一个文本框,名称为Text1,然后...
  • 执行下面的程序段后,s的值为______...
  • 下面程序的作用是利用随机函数产生10个1...
  • 当对象得到焦点时,会触发______事件...