首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面程序段的输出结果是( )。 public class Test {public static void main(String args[]){ int[] a=new int[11]; int[] p=new int[4];
下面程序段的输出结果是( )。 public class Test {public static void main(String args[]){ int[] a=new int[11]; int[] p=new int[4];
admin
2010-07-28
21
问题
下面程序段的输出结果是( )。 public class Test {public static void main(String args[]){ int[] a=new int[11]; int[] p=new int[4]; int k=5; for(int i= 1 ; i<= 10;i++) a
=i; for(int i=1 ; i<=3;i++) p
=a[i*i]; for(int i= 1 ;i<=3;i++) k=k+p
*2; System.out.println(k); }}
选项
A、37
B、31
C、33
D、35
答案
4
解析
转载请注明原文地址:https://kaotiyun.com/show/KW9p777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
用树形结构表示实体之间联系的模型是
数据库设计的根本目标是要解决
数据库系统的核心是
下列叙述中正确的是()。
一个汉字的16×16点阵字形码长度的字节数是
下面不属于软件设计原则的是
软件生命周期可分为定义阶段、开发阶段和维护阶段,下面不属于开发阶段任务的是
根据设定的条件,判断应该选择哪一条分支来执行相应的语句序列,属于
关于break语句与continue语句的说法中,以下选项中不正确的是
下面关于Python说法错误的是()。
随机试题
沼泽是一种_______植被类型。
患者,女性,40岁。右颈前区无痛性肿物1年余。鼻腔内偶有少量血液,无发热、咳嗽及消瘦,近来肿物无明显增大,无结核病史。查体:脉率72次/分,血压110/70mmHg,无突眼,右甲状腺触及约1.5cm结节,右颈外侧上区触及一肿大淋巴结,约2.5cm,稍活动,
陈某是天津三石公司供销科长,任职期间办理了三石公司与上海三木公司之间的供销与加工等多方面的业务。1997年3月,陈某辞职后开办了六顺公司,六顺公司的办公房内存有三石公司一批设备。1997年4月1日,陈某对三木公司讲有一批设备委托三木公司以其名义销售,销售价
在特大型项目或特别复杂的项目中,可能多请一些人参加也是很有好处或很有必要的。但价值工程小组的规模不得超过()人。
劳动力市场的制度结构要素有()。
在5000年以前,美索不达米亚平原上的人们已经命名了20多个星座。之后,古巴比伦人继续划分天空的区域,不断提出新的星座。公元前1000年左右,古巴比伦人提出30个星座。后来,他们的星座划分传到古希腊人那里,又得到进一步的发展和补充。公元2世纪的时候,古希腊
ReadthefollowingChinesetextandwriteanEnglishabstractof80-100words.G20引领全球经济?不到一年前,乔治•W•
Thenetworthofafirmisits______.
Languagecompetenceandlanguageperformancearecompletelydifferent.Competenceisanabilitytorecognizeandunderstandsent
DearSir/Madam,Inresponsetoyouradvertisementinyesterday’sTimeEducationalSupplement,Iwouldliketoapplyforthe
最新回复
(
0
)