首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有如下程序段,该程序段执行完后,执行循环的次数是 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
31
问题
有如下程序段,该程序段执行完后,执行循环的次数是 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://jikaoti.com/ti/lp80FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
请完成下列Java程序。程序的功能是复制文件并显示文件,将每个字符读入,并写入另一个文件,同时显示出来(注意:在本题中,当前目录下的README.txt文件打印在屏幕上,并写入另一个文件temp.txt中)。注意:请勿改动main()主方法和其他已
数据库系统阶段的数据具有较高独立性,数据独立性包括物理独立性和【】两个含义。
设A为已定义的类名,下列是声明A类的对象a的语句中正确的是
每个应用程序可以包括许多方法,但必须有且只能有一个______方法。
下面是一个Applet程序,其功能是通过两个文本框获得用户输入的两个数,按回车键计算这两个数的商。请改正程序中的错误(有下划线的语句),使程序能输出正确的结果。源程序文件代码清单如下:importjava.awt.*;import
设a=8,则表达式a>>>2的值是【】。
关系操作的特点是【】操作。
接口是抽象方法和常量的集合,是一种特殊的抽象类。下面的程序是对接口的操作,请在程序的每条横线处填写一个语句,使程序的功能完整。注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。_____________
当整型变量n的值能被13除尽时,表达式是【】。
表达式1/2+“aa”+3的值为
随机试题
A.痰气郁结,气机不畅B.气滞血瘀,痰凝正虚C.气郁痰火,阴阳失调D.气机逆乱,阴阳失调厥证的主要病机是
人民法院适用普通程序审理案件,一般应当自立案之日起()内审结。
申请设立期货交易所,应当向中国证监会提交的文件和材料有()。
《中华人民共和国合同法》规定的无效合同有哪些?
目前,旅游和食品等行业出现了很多不文明、不诚信的问题,有关部门制定了“黑名单”制度,并且已经初见成效,因此有人认为“黑名单”制度能够提升人们的道德水平,你怎么看?
在Windows2003Server中启用配置SNMP服务时,必须以_____________身份登录才能完成SNMP服务的配置功能。
下列______范围内的计算机网络可称之为局域网。
在Word2010中,要实现将文档目录转变为纯文本格式的最佳操作方法是()。
A、Atasupermarket.B、Atabookstore.C、Atalibrary.D、Atabank.C男士说他是来还这两本书的,女士说男士的书已经超期两天了.因此男士需要交罚款。由此可以推断,本对话发生在图书馆。
稳固的结构
最新回复
(
0
)