运行下列程序,显示的结果是Private Sub Command34_Click() i=0 Do i=i+1 Loop While i<10 Msg
运行下列程序,显示的结果是
Private Sub Command34_Click()
i=0
Do
i=i+1
Loop While i<10
MsgBox i
End Sub
A.0
B.1
C.10
D.11
运行下列程序,显示的结果是
Private Sub Command34_Click()
i=0
Do
i=i+1
Loop While i<10
MsgBox i
End Sub
A.0
B.1
C.10
D.11
#include<iostream>
usingnamespacestd;
classTV{
public:
TV(ints=41):size(s)
{}
voidPrintO
{cout<<’/’<<’N’<<size;}
voidPrint()const
{cout<<’/’<<’C’<<size;}
private:
intsize;
intmain0{
constTVroom1;TVroom2(54);
room1.Print0;
room2.Print0;
return0;
}
A./N41/C54
B./C41/N54
C./N41/S54
D./C41/C54
A.print("sum=",sum)
B.print(sum)
C.print("sum=,30")
D.print(sum=30)
在窗体上画一个命令按钮,然后编写如下事件过程:
Option Base 1
Private Sub Command1_Click()
Dima As Variant
a=Array(1,2,3,4)
j=1
Fori=4 To 1 Step-1
s=s+a(i)*j
j=j*10
Next i
Print s
End Sub
运行上面的程序,单击命令按钮,其输出结果是()。
A、4321
B、12
C、34
D、1234
设窗体上有一个名为Text1的文本框,并编写如下程序:
Private Sub Form_Load()
Show
Text1.Text = ""
Text1.SetFocus
End Sub
Private Sub Form_MouseUp(Button As Integer, _
Shift As Integer, X As Single, Y As Single)
Print "程序设计"
End Sub
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
Print "Visual Basic";
End Sub
程序运行后,如果在文本框中输入字母“a”,然后单击窗体,则在窗体上显示的内容是()。
A.Visual Basic
B.程序设计
C.Visual Basic程序设计
D.a程序设计
以下程序的输出结果是()。 Option Base 1 Private Sub Command1_Click() Dim a(10),p(3) as Integer k=5 For I-1 to 10 a(i)=I Next I For j=1 to3 p(i)=a(I*j) Next j For I=l to 3 k=k+ p (I)*2 Next I Print k End Sub
A.33
B.28
C.35
D.37
下面程序执行时,输出的结果是()。 Private Sub Form_Click() DimiASInteger,j As Integer i=10 Do i=i+j forj=10 toistep-3 i=i+j nextj Loop Whilei<50 Printi;j End Sub
A.50 10
B.50 9
C.57 10
D.59 9
A.构造
B.static构造
C.static
D.没有输出结果
A.1234565.432
B.123.4565.432
C.123.45654.32
D.12.345,654.32