首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下程序段中Do...Loop循环执行的次数为______。 n=5 Do if n mod 2=0 then n=n\2 else n=n*3+1 end if
以下程序段中Do...Loop循环执行的次数为______。 n=5 Do if n mod 2=0 then n=n\2 else n=n*3+1 end if
admin
2010-03-30
28
问题
以下程序段中Do...Loop循环执行的次数为______。 n=5 Do if n mod 2=0 then n=n\2 else n=n*3+1 end if Loop until n=1
选项
A、4
B、3
C、5
D、2
答案
4
解析
转载请注明原文地址:https://kaotiyun.com/show/M71p777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
有些情况下(如多线程对共享数据操作时),这种线程运行顺序的不确定性将会产生执行结果的不确定,使共享数据的一致性被破坏,因此在某些应用程序中必须对线程进行【】。
int型public成员变量MAX_LENGTH,该值保持为常数200,则定义这个变量的语句是【】。
在一个容量为25的循环队列中,若头指针front=16,尾指针rear=9,则该循环队列中共有【】个元素。
下列有关数据库的描述,正确的是()。
下面是用户程序对Applet类中方法paint()的重新定义,根据程序功能,在指定的空白处填上适当的语句或语法成分。publicvoidpaint(Graphicsg){g【】(“你好!”,10,20);}
在Java语言中,()是最基本的元素。
顺序执行以下两个语句的输出结果是【】。
Java的反汇编命令是
关系模型的完整性规则是对关系的某种约束条件,包括实体完整性、【】和自定义完整性。
在先左后右的原则下,根据访问根结点的次序,二叉树的遍历可以分为三种:先序遍历、【】遍历和后序遍历。
随机试题
可调节汗腺导管对Na+重吸收的是
男,50岁,肝炎病史20年,肝区持续性疼痛3个月,伴乏力,消瘦、食欲减退,恶心,低热,黄疸,查体肋下腋前线可及肿大之肝脏,质硬。最可能的诊断是
患者,女,71岁。少腹疼痛,痛如针刺,腹中结块,经久不愈,舌紫暗,脉细涩。其证候是
患者,男性,61岁,严重腹泻、脱水、意识障碍。查体:血糖32mmol/L,尿酮体(+)。护士向家属解释患者意识障碍发生的原因是
缝合面颈部皮肤,进针时针尖与皮肤的关系()。
关于贪污罪的认定,下列哪些选项是正确的?(2011年卷二第63题)
甲、乙约定,如果甲的儿子回国,甲将终止与乙之间的委托合同,在甲的儿子没有回国之前,则该约定属于()。
“精神”从一开始就很倒霉,注定要受物质的“纠缠”,物质在这里表现为震动着的空气层、声音,简言之,即语言。这说明
Whichofthefollowingisanultimateconstituent?
A、Theycaninvitegueststohavemealsatareducedprice.B、Theyreceivecardsthatallowthemtobeservedfirst.C、Theycanh
最新回复
(
0
)