首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有如下程序段,该程序段执行完后,执行循环的次数是 total=0 Counter=1 Do Print Counter total=total + Counter Print total Counter=Counter+1
有如下程序段,该程序段执行完后,执行循环的次数是 total=0 Counter=1 Do Print Counter total=total + Counter Print total Counter=Counter+1
admin
2009-01-15
26
问题
有如下程序段,该程序段执行完后,执行循环的次数是 total=0 Counter=1 Do Print Counter total=total + Counter Print total Counter=Counter+1 If total>10 Then Exit Do End If Loop While Counter <=10
选项
A、5
B、10
C、15
D、20
答案
1
解析
本题考查Do…Loop While语句,共执行了5次,total=1+2+3+4+5>10。
转载请注明原文地址:https://kaotiyun.com/show/yY2p777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
请在每条横线处填写一个语句,使程序的功能完整,且输出结果为911。注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。源程序文件代码清单如下:publicclassOuter{
下列的程序的功能是求2~100之间的素数,程序中划线部分应填入的选项是 publicclassTestnn{ publicstaticvoidmain(Stringargs[]) {Labell: for(int
下列叙述中,不属于结构化程序设计方法的主要原则是
程序设计基本结构有顺序结构、选择结构和______共3种。
下面程序的功能是从键盘读取一行文本并将该文本存储到文件中。当用户运行该程序时,需要输入一行文本并按下回车键。然后在DOS系统提示符处输入typefile.txt并按下Enter键,这时屏幕会显示typefile.txt的内容。通过这个命令可以验证该程序
在j2sdkl.4.2版中,解压得到的目录中,存放编译器、解释器和许多工具的目录是()。
在软件工程中,白箱测试法可用于测试程序的内部结构。此方法将程序看做是
在JDK1.4的java.util.regex正则表达式包中,有一个______类,该类的staticPatterncompile方法用于将正则表达式字符串编译成模式对象来进行快速模式匹配。
算法的空间复杂度是指()
创建一个显示“选项”的菜单项对象mi的正确语句是______。
随机试题
某工厂计量实验室里有一台新进口的高精度电子分析天平,准备作为企业计量标准使用。这台天平已经使用了二个月,其使用说明书未翻译出中文,并贴着合格标志。考评员问:这台天平是否进行过检定?室主任回答说:“国外这个厂家的产品质量很好,我们事先做过调查,买的时候附有厂
对于壳体塑件,为保证不变形,应该使型腔的冷却能力大于型芯的冷却能力。
网络传播
糖尿病的主要治疗原则是控制饮食、酌情选用运动疗法或降血糖药物,防止各种并发症。()
下列哪项检查对判断慢性肾炎病情程度最有意义()
在退税定点商店购买退税物品,购物金额达到起退点为800元。()
从所给的四个选项中,选择最合适的一个填入问号处,使之呈现一定的规律性。
简述衍生工具的定义及其在商业中的应用。
cable modem上传和下载的速率是不一样的。当数据下行传输时,一个6MHz的频带可传输的数据速率通常能达到______以上。
A、 B、 C、 B所给出的问题是一个表示请求的疑问句(MayI…),所以表示同意的选项(B)的回答“Sure”是符合语境的恰当选择。注意不要只听到了schedule就误选了(A),也不要将copy误听为coffee而
最新回复
(
0
)