首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面程序的输出结果是______。 public class exl { public static void main(String[] args) { for(int cn
下面程序的输出结果是______。 public class exl { public static void main(String[] args) { for(int cn
admin
2008-01-11
6
问题
下面程序的输出结果是______。 public class exl { public static void main(String[] args) { for(int cnt=0;cnt<10,;cnt++) { if(cnt==5) break; System.out.print(cnt); } } }
选项
A、01234
B、012346789
C、6789
D、5
答案
A
解析
转载请注明原文地址:https://kaotiyun.com/show/Hbnp777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
在项目管理器中,将一程序设置为主程序的方法是
在VisualFoxPro中,编译或连编生成的程序文件的扩展名不包括
对长度为n的线性表排序,在最坏情况下,比较次数不是n(n-1)/2的排序方法是
(1)打开程序文件progerr.prg,按文件中给出的功能要求改正其中的错误,以文件名prognew.prg重新保存该文件并运行程序。(2)建立顶层表单,表单文件名为myform.sex,表单控件名为myform,表单标题为“顶层表单”。为顶层
在VisualFoxPro中,下列关于SQL表定义语句(CREATETABLE)的说法中错误的是
按照“后进先出”原则组织数据的数据结构是
按照“后进先出”原则组织数据的数据结构是
下面不属于软件设计原则的是
下列选项中不属于结构化程序设计原则的是
随机试题
关于哮证的治疗,古代医学家中谁提出未发以扶正为主,既发以攻为急的原则
经过高压蒸气灭菌的用品可保留()
下列哪项提示患者的肾衰竭为慢性、不可逆性
尿胆原呈强阳性,尿胆红素呈阴性的是
汉字输出码又被称为汉字( )。
遵义一家某棉纺企业为增值税一般纳税人,20×2年1月份发生下列业务:(1)购进纺织设备一台,不含税价款10万元,取得增值税专用发票,另支付运费500元,取得承运部门开具的运输发票。(2)从当地农民生产者购进免税棉花10吨,每吨1.4万元,收购凭证上注明
“太湖三宝”中居第一位的是()。
效度()。
简述教师在设计历史问题时应注意的问题。
系统允许发生部分死锁,一旦发现有死锁进程.则通过杀死死锁进程来解决死锁问题的方法称为()。
最新回复
(
0
)