首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有如下的程序片段,该程序片段的执行完后,共执行循环______次。 Private Sub command1_ Click() total =0 Counter = 1 do Print Counter total = total + Counter Pr
有如下的程序片段,该程序片段的执行完后,共执行循环______次。 Private Sub command1_ Click() total =0 Counter = 1 do Print Counter total = total + Counter Pr
admin
2010-09-11
22
问题
有如下的程序片段,该程序片段的执行完后,共执行循环______次。
Private Sub command1_ Click()
total =0
Counter = 1
do
Print Counter
total = total + Counter
Print total, "111"
Counter = Counter + 1
if total >= 10 then
exit do
End if
Loop while Counter <= 10
End Sub
选项
答案
A
解析
本题的重点是判断循环非正常退出的问题。该段程序有“total>10”和“Counter<=10”两个条件,只要其中一个条件先成守,循环就退出。total的计算过程为“1+2+3+4=10”,Counter的计算过程为“1+1+1+1=4”。
转载请注明原文地址:https://kaotiyun.com/show/EJmp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
在编译Java程序时,用于指定生成.class文件位置的选项是()。
下面不属于软件设计原则的是______。
下列关于队列的叙述中,正确的是______。
下面对对象概念描述错误的是
已知数据表A中每个元素距其最终位置不远,为节省时间,应采用的算法是( )。
Java程序中的语句不可以是( )。
数据库系统的核心是
在HTML文件的<applet>标志中作为可选属性的是
Swing组件中可以通过拖动控件来设置数值的是()。
随机试题
对秦汉的乡治发出由衷的赞美,称“三代明王之治亦不越乎此”的是
简述《罗马公约》的主要内容。
望神的重点是
针刺环跳时宜选()
地下工程防水卷材的铺贴方式可分为“外防外贴法”和“外防内贴法”,外贴法与内贴法相比较,其主要特点有()。
垄断竞争市场的特点是()。Ⅰ.生产者对市场情况非常了解,并可自由进出这个市场Ⅱ.生产者对产品的价格有一定的控制能力Ⅲ.生产者众多,各种生产资料可以流动Ⅳ.生产的产品同种但不同质,即产品之间存在差异
随着我国知识产权法制环境的建立和改善,人们的知识产权观念进一步强化。下列关于计算机软件知识产权的说法错误的是()。
下列犯罪中,只能由首要分子构成的是()。
模块本身的内聚是模块独立性的重要性度量因素之—。在7类内聚中,具有最强内聚的—项是______。
Itisthesepoisonousproducts______cancausethesymptomsoftheflu,suchasheadacheandachingmuscles.
最新回复
(
0
)