![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
[单选题]
设有程序段: int i=2;while(i=0) {i--;}则下面描述中正确的是()
A.while 循环体执行2次
B.循环是无限循环
C.循环体语句一次也不执行
D.循环体语句执行一次
![](https://static.youtibao.com/asksite/comm/h5/images/m_q_a.png)
D、循环体语句执行一次
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
A.while 循环体执行2次
B.循环是无限循环
C.循环体语句一次也不执行
D.循环体语句执行一次
D、循环体语句执行一次
A.while(i<=100)
B.while(i<=100)
C.while(i>100)
D.while(i<100)
下面程序段的执行结果是()。
int a[] = { 2, 3, 4, 5, 6 };
for (int i = a.length - 1; i >= 0; i--)
System.out.print(a[i] + "");
A.0
B. 1
C. 3
D. 6
A.9, 8, 7, 3, 6, 2
B.2, 3, 6, 7, 8, 9
C.2, 3, 6, 9, 8, 7
D.9, 8, 7, 6, 3, 2
A.①、⑦、③、⑤
B.②、③、⑤、⑦
C.①、⑤、④、③
D.③、④、①、②
A.2:4 6 8
B.2:8 6 4
C.3:4 6 8
D.3:8 6 4
A.45
B.55
C.60
D.50
A.i = 4 and j = 4
B.i = 5 and j = 5
C.i = 5 and j = 4
D.i = 4 and j = 5