下列关于do while …loop 和do…loop while循环执行循环体次数的描述不正确的是()。
A.do while …loop循环和do…loop while循环至少都执行一次
B.do while …loop循环可能不执行,do…loop while循环至少执行一次
C.do while …loop循环至少执行一次,do…loop while循环可能不执行
D.do while …loop循环和do…loop while循环可能都不执行
A.do while …loop循环和do…loop while循环至少都执行一次
B.do while …loop循环可能不执行,do…loop while循环至少执行一次
C.do while …loop循环至少执行一次,do…loop while循环可能不执行
D.do while …loop循环和do…loop while循环可能都不执行
A.For……next循环
B.While……wend循环
C.Do……Loopwhile|until循环
D.do[while|until]……loop循环
程序代码为:
Public sub proc(a%())
Static I%
Do
A(i)=a(i)+a(I+1)
I=I+1
Loop while I<2
End sub
Private sub command1_click()
Dim m%,I%,x%(10)
For I=0 to 4 : x(i)=I+1 : next I
For I=1 to 2 : call proc(x) : next I
For I=0 to 4 : print x(i); : next I
End sub
程序运行后,单击命令按钮后,在窗体显示的结果是:
以下程序执行后将输出100到200之间所有的素数,并统计素数的个数
Private Sub Form_Click()
Dim i%, j%, k%, t% 't为统计素数的个数
Dim b As Boolean
For i = 100 To 200
b = True
k= ------ 1 -----
j = Int(Sqr(i))
Do While k <= j And b
If i Mod k = 0 Then
------ 2 ------
End If
------ 3 ------
Loop
if b=true then
t = t + 1
Form1.Print i
End If
Next i
Print "t="; t
End Sub
A.sum
B.n
C.result
D.int
Why do Japanese listeners sometimes close their eyes while listening to a speech?
A.To calm themselves down.
B.To enhance concentration.
C.To show their impatience.
D.To signal lack of interest.
A.He hated spiders.
B.He wanted to do some research on the web.
C.He just wanted to while away the time.
D.He wanted to catch the spider.
The Arabs and the Japanese differ in that ______.
A.the Japanese keep their closeness within limits while the Arabs don't
B.the Arabs like to touch their companions but the Japanese don't
C.the Arabs require more space in privacy than the Japanese
D.the Japanese do not mind being alone while the Arabs do
A.Just keep calm and do your best.
B.Face the interviewer, while answering questions.
C.Never take your eyes off the interviewer.
D.Sit straight on the edge of your chair.
插入初始为空的二叉搜索树中,请画出所得到的树T。然后画出删除for之后的二叉搜索树T',若再将for插人T'中得到的二叉搜索树T''是否与T'相同?