out of 13)__________ people.
out of 13)__________ people.
参考答案和解析
错误
相关考题:
13 Which of the following correctly describes the imprest system for operating petty cash?AA All expenditure out of petty cash must be supported by a properly authorised voucher.B A regular equal amount of cash is transferred into petty cash.C The exact amount of expenditure out of petty cash is reimbursed at intervals.D A budget is fixed for a period which petty cash expenditure must not exceed.
阅读下列代码 public class Arrays{ public static void main(String[]args){ int[]a=new int[5]; for(int i=0;i<a. length; i=i+1){ a[i]=10+i; } for(int i=0; i<a. length; i=i+1){ System. out. println(a[i]); } String[]s={"Frank","Bob","Jim"}; for(int i=0; i<s. length; i=i+1){ System. out. println(s[i]); } S[2]="Mike"; System. out. println(s[2]); } } 代码运行结果正确的是A.10 11 12 13 14 Mike Bob Frank JimB.11 12 13 14 15 Frank Bob Mike JimC.10 11 12 13 14 Frank Bob Jim MikeD.11 12 13 14 15 Mike Jim Bob Frank
The Chinese dream is the dream of the people. We should try our best to make our dreams ______.A: put offB: pick upC: come trueD: reach out
publicclassPet{privateStringname;publicPet(){System.out.print(1);}publicPet(Stringname){System.out.print(2);}}publicclassDogextendsPet{publicDog(){System.out.print(4);}publicDog(Stringname){super(name);System.out.print(3);}}执行newDog(棕熊”);后程序输出是哪项?()A.33B.13C.23D.123
public static void main(String[]args){Integer i=new Integer(1)+new Integer(2);switch(i){case3:System.out.println(three);break;default:System.out.println(other);break;}}Whatistheresult?()A.threeB.otherC.Anexceptionisthrownatruntime.D.Compilationfailsbecauseofanerroronline12.E.Compilationfailsbecauseofanerroronline13.F.Compilationfailsbecauseofanerroronline15.
11.publicstaticvoidtest(Stringstr){12.if(str==null|str.lellgth()==0){13.System.out.println(”Stringisempty”);14.}else{15.System.out.println(”Stringisnotempty”);16.}17.}Andtheinvocation:31.test(llull);Whatistheresult?()A.Auexceptionisthrownatruntime.B.“Stringisempty”isprintedtooutput.C.Compilationfailsbecauseofauerrorinline12.D.“Stringisnotempty”isprintedtooutput.
publicstaticvoidappend(Listlist){list.add(”0042”);}12.publicstaticvoidmain(String[]args){13.ListintList=newArrayList();14.append(intList);15.System.out.println(intList.get(0));16.}Whatistheresult?() A.42B.0042C.Anexceptionisthrownatruntime.D.Compilationfailsbecauseofanerrorinline13.E.Compilationfailsbecauseofanerrorinline14.
Stringtest=Thisisatest”;12.String[]tokens=test.split(”\s”);13.System.out.println(tokens.length);Whatistheresult?() A.0B.1C.4D.Compilationfails.E.Anexceptionisthrownatruntime.
11.classa{12.publicvoidprocess(){System.out.print(”a,”);}}13.classbextendsa{14.publicvoidprocess()throwsIOException{15.super.process();16.System.out.print(”b,”);17.thrownewIOException();18.}}19.publicstaticvoidmain(String[]args){20.try{newb().process();}21.catch(IOExceptione){System.out.println(”Exception”);}}Whatistheresult?()A.ExceptionB.a,b,ExceptionC.Compilationfailsbecauseofanerrorinline20.D.Compilationfailsbecauseofanerrorinline14.E.ANullPointerExceptionisthrownatruntime.
11.publicstaticvoidmain(String[]args){12.Integeri=uewInteger(1)+newInteger(2);13.switch(i){14.case3:System.out.println(”three”);break;15.default:System.out.println(”other”);break;16.}17.}Whatistheresult?()A.threeB.otherC.Anexceptionisthrownatruntime.D.Compilationfailsbecauseofanerroronline12.E.Compilationfailsbecauseofanerroronline13.F.Compilationfailsbecauseofanerroronline15.
11.publicvoidtestIfA(){12.if(testIfB(”True”)){13.System.out.println(”True”);14.}else{15.System.out.println(”Nottrue”);16.}17.}18.publicBooleantestIfB(Stringstr){19.returnBoolean.valueOf(str);20.}WhatistheresultwhenmethodtestIfAisinvoked?()A.TrueB.NottrueC.Anexceptionisthrownatruntime.D.Compilationfailsbecauseofanerroratline12.E.Compilationfailsbecauseofanerroratline19.
Given:11.publicstaticvoidmain(String[]args){12.Objectobj=newint[]{1,2,3};13.int[]someArray=(int[])obj;14.for(inti:someArray)System.out.print(i+);15.}Whatistheresult?() A.Compilationfailsbecauseofanerrorinline13.B.AClassCastExceptionisthrownatruntime.C.123D.Compilationfailsbecauseofanerrorinline14.E.Compilationfailsbecauseofanerrorinline12.
Given:11.Stringtest=Thisisatest;12.String[]tokens=test.split(\s);13.System.out.println(tokens.length);Whatistheresult?() A.0B.1C.4D.Compilationfails.
下列程序的执行结果为( )。 publicclassc3 { publicstaticvoidmain(Stringargs[]) { inti=13,j=10; if(1-->j) i++; elsej--; System.out.println(i+",\t"+j); } }A.13 10B.12 11C.11 11D.12 12
下列程序段的输出结果是()。voiddoublearithmaticoperator(){inta=10,b=4,c=20,d=6;System.out.print(a+b*c+d);System.out.print(",");System.out.print(a+c%b);System.out.print(",");System.out.println(a++*b+c*-d);}A.860,10,360B.96,10,140C.96,13,140D.860,13,360
有如下程序; public class MethTest { static int Varl=100; int Var2=200; public static void main(String args[]) { Varl=10; MethTest Obj1=new MethTest(); MethTest Obj2=new MethTest(); Obj1.Varl++; System.out.println(Objl.Varl); Obj2.Varl++; System.out.println(Obj2.Varl); MethTest.Varl++; System.out.println(Objl.Varl); Obj1.Var2++; System.out.println(Obj1.Var2); Obj2.Var2++; System.out.println(Obj2.Var2); } } 程序的运行结果为( )。A.11 12 13 201 201B.101 102 103 201 201C.11 12 13 201 202D.10 10 10 201 201
Which of the following statements is TRUE according to the passage?A. Some companies in the United States moved to Sweden, Germany and Belgium.B. Fresh air, spacious room and being away from others attract people to move to the suburbs.C. People wouldn't pay tax when they moved out of cities.D. The neighborhood should be maintained by old and poor people.
Tom is snobbish, always _________the influential people."A.making out forB.making upC.making up toD.making up for
public class Pet{ private String name; public Pet(){ System.out.print(1); } public Pet(String name){ System.out.print(2); } } public class Dog extends Pet{ public Dog(String name){ System.out.print(3); } } 执行new Dog(“棕熊”);后程序输出是哪项?() A、 23B、 13C、 123D、 321
单选题public class Pet{ private String name; public Pet(){ System.out.print(1); } public Pet(String name){ System.out.print(2); } } public class Dog extends Pet{ public Dog(){ System.out.print(4); } public Dog(String name){ super(name); System.out.print(3); } } 执行new Dog(“棕熊”);后程序输出是哪项?()A 33B 13C 23D 123
多选题10.publicclassBar{ 11.staticvoidfoo(int...x){ 12.//insertcodehere 13.} 14.} Which two code fragments,inserted independently at line1 2,will allow the class to compile()Aforeach(x)System.out.println(z);Bfor(intz:x)System.out.println(z);Cwhile(x.hasNext())System.out.println(x.next());Dfor(inti=0;i
单选题public class Pet{ private String name; public Pet(){ System.out.print(1); } public Pet(String name){ System.out.print(2); } } public class Dog extends Pet{ public Dog(String name){ System.out.print(3); } } 执行new Dog(“棕熊”);后程序输出是哪项?()A 23B 13C 123D 321
单选题public static void main(String[]args){ Integer i=new Integer(1)+new Integer(2); switch(i){ case3:System.out.println("three");break; default:System.out.println("other");break; } } Whatistheresult?()AthreeBotherCAnexceptionisthrownatruntime.DCompilationfailsbecauseofanerroronline12.ECompilationfailsbecauseofanerroronline13.FCompilationfailsbecauseofanerroronline15.
多选题10. public class Bar { 11.static void foo(int...x) { 12. // insert code here 13. } 14. } Which two code fragments, inserted independently at line 12, will allow the class to compile?()Aforeach(x) System.out.println(z);Bfor(int z : x) System.out.println(z);Cwhile( x.hasNext()) System.out.println( x.next());Dfor( int i=0; i x.length; i++ ) System.out.println(x[i]);