作业视频教务托管壹叁路路贰陆陆壹〇肆〇
简答题
题目 System.out.println( “5 + 5 = ” + 5 + 5);语句的输出结果是
答案 5 + 5
题目请阅读下面的程序publ ic classTest{publ icstaticvoid main(String[] args) { int x = 3; if (x > 5){ System.out.println("a"); } else{System.out.println("b"); } } }程序的运行结果是 a.true b. false c.a d.b
答案D
题目请阅读下面的程序。 publ ic class Test{ publ icstaticvoid main(String[]args) { inta=0; int b=0; for(int i= 1; i<= 5; i++) { a = i%2;whi le (a-- >= 0){b++; } }System.out.println( “a=” +a+ “,b=” +
b); } }下列选项中哪一个是正确的运行结果 a.a=8,b=-2b.a=-2,b=8c.a=3,b=0d.a=0,b=3
答案 B
题目请阅读下面的程序publ ic classTest{publ icstaticvoid main(String[] args) { int a[ ]={2,0,4, 1,8, 3,5};int temp; for (int i =0; i < a.length - 1; i++) { for (intj=a. length- 1;j > i;j--) { if(a[j] <a[j - 1]) {temp=a[j];a[j] = a[j - 1]; a[j - 1] = temp; } } } for (Integer i : a){System.out.print(i); } } }下列选项中哪个是程序的运行结果 a.8543210b.0123458c.2041835d.以上答案都丌对
答案 B
题目请阅读下面的代码String s1=new String("abc");String s2=s1.intern(); String s3="abc";System.out.println(s1==s2);
System.out.println(s2==s3);
System.out.println(s1==s3);下列选项中程序的输出结果为 a. false true false b. false true true c. falsefalse true d. false false false
答案A
题目请阅读下面的代码classA{ intx; static inty;voidfac(String s){System.out.println( “字符串” +s); } }下
月神科技是由江西月神科技有限公司运营的一家自营云产品的IDC服务商,提供香港安畅、香港沙田、美国CERA、成都电信等机房资源,月神科技有自己的用户群和拥有创宇认证,并且也有电商企业将业务架设在月神科技的平台上。本次带来的是全场八折促销,续费同价。并且上新了国内成都高防服务器,单机100G集群1.2T真实防御,上层屏蔽UDP,可定制CC策略。非常适合网站用户。官方网站:https://www.ysi...
专心做抗投诉服务器的VirtVPS上线瑞士机房,看中的就是瑞士对隐私的保护,有需要欧洲抗投诉VPS的朋友不要错过了。VirtVPS这次上新的瑞士服务器采用E-2276G处理器,Windows/Linux操作系统可选。VirtVPS成立于2018年,主营荷兰、芬兰、德国、英国机房的离岸虚拟主机托管、VPS、独立服务器、游戏服务器和外汇服务器业务。VirtVPS 提供世界上最全面的安全、完全受保护和私...
DMIT怎么样?DMIT是一家美国主机商,主要提供KVM VPS、独立服务器等,主要提供香港CN2、洛杉矶CN2 GIA等KVM VPS,稳定性、网络都很不错。支持中文客服,可Paypal、支付宝付款。2020年推出的香港国际线路的KVM VPS,大带宽,适合中转落地使用。现在有永久9折优惠码:July-4-Lite-10OFF,季付及以上还有折扣,非 中国路由优化;AS4134,AS4837 均...