未知题型
假定有下面的程序段: For i=1 To 3 For j=1 To i For k=j To 3 Print'i=';i,'j=';j,'k=';k Next k Next j Next i 这是一个三重循环程序,在这个程序中,外层、中层和内层循环的循环次数是
D.3、9和18
- A.3、6和14
B.3、8和16
C.3、4和12
【参考答案】
A
解析:本题主要考查多重循环的循环次数。在这个程序中外层循环由循环变量i控制,它只可以取3个值,故循环次数为 ......
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
点击查看答案
相关考题
-
未知题型
下列程序段的执行结果为 a='ABBACDDCBA' For I=6 To 2 Step-2 x=Mid(a,I,I) y=Leh(a,I) z=Right(a,I) z=x & y & z Next I Print zD.ABBABA
A.ABA
B.AABAAB
C.BBABBA -
未知题型
阅读下列程序: Private Sub Commad1_Click() Dim i As Integer,k As Integer k=2 For i=1 To 3 Print H(k) Next i End Sub Function H(j As Integer) a=0 Static b a=a+1 b=b+1 H=a*b+j End Function 程序运行后,单击命令按钮输出结果是D.356
A.234
B.345
C.567 -
未知题型
The proposed 'alternative funding models'(Paragraph 2) might be more clearly based onA.cost-sharing between insurers and patients.B.moderate constraints on medical budgets.C.delivering consumers' costs to tax-payers.D.generous allocations of money to hospitals.
A.cost-sharing
B.
B.moderate
C.
C.delivering
D.
D.generous
