编程中的循环控制:从基础到应用
1. 循环相关的基础问题
1.1 复习问题解答
在编程学习过程中,我们会遇到一些关于循环的基础问题,比如:
|问题|选项|答案|
| ---- | ---- | ---- |
|What intCount value causes the loop in Review Question 2 to end?|a. 0
b. 1
c. 3
d. 4|d|
|How many times will the computer process the MessageBox.Show method in the following code?
vb<br>intCount = 0<br>Do<br> MessageBox.Show("Hello")<br> intCount += 1<br>Loop Until intCount > 3<br> |a. 0
b. 1
c. 3
d. 4|d|
|The instructions in a pretest loop will always be processed at least once.|a. True
b. False|b|
|The condition in a posttest loop can be phrased as either a looping condition or a loop exit condition.|a. True
b. False|a
超级会员免费看
订阅专栏 解锁全文

被折叠的 条评论
为什么被折叠?



