作业视频教务托管壹叁路路贰陆陆壹〇肆〇
简答题
题目 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); } }下
昔日数据,国内商家,成立于2020年,主要销售湖北十堰和香港HKBN的云服务器,采用KVM虚拟化技术构架,不限制流量。当前夏季促销活动,全部首月5折促销,活动截止于8月11日。官方网站:https://www.xrapi.cn/5折优惠码:XR2021湖北十堰云服务器托管于湖北十堰市IDC数据中心,母鸡采用e5 2651v2,SSD MLC企业硬盘、 rdid5阵列为数据护航,100G高防,超出防...
IT狗为用户提供 在线ping、在线tcping、在线路由追踪、域名被墙检测、域名被污染检测 等实用工具。【工具地址】https://www.itdog.cn/【工具特色】1、目前同类网站中,在线ping 仅支持1次或少量次数的测试,无法客观的展现目标服务器一段时间的网络状况,IT狗Ping工具可持续的进行一段时间的ping测试,并生成更为直观的网络质量柱状图,让用户更容易掌握服务器在各地区、各线...
greencloudvps怎么样?greencloudvps是一家国外主机商,VPS数据中心多,之前已经介绍过多次了。现在有几款10Gbps带宽的特价KVM VPS,Ryzen 3950x处理器,NVMe硬盘,性价比高。支持Paypal、支付宝、微信付款。GreenCloudVPS:新加坡/美国/荷兰vps,1核@Ryzen 3950x/1GB内存/30GB NVMe空间/1TB流量/10Gbps...