I was about to go out _____ the phone rang. A. whyB. whereC. whenD. while

I was about to go out _____ the phone rang.

A. why

B. where

C. when

D. while


相关考题:

If you _______ out to play, I _______ along with you. A.were, will goB.go, have been goneC.go, will goD.are going, am going

classFlibitz{publicstaticvoidmain(String[]args){intgrop=7;newFlibitz().go(grop);System.out.print(grop);}voidgo(intgrop){if(++grop〉7)grop++;System.out.print(grop);}}结果为:() A.77B.79C.97D.99

classPasser{staticfinalintx=5;publicstaticvoidmain(String[]args){newPasser().go(x);System.out.print(x);}voidgo(intx){System.out.print(++x);}}结果是什么?() A.55B.56C.65D.66

现有:voidtopGo(){try{middleGo();}catch(Exceptione){System.out.print(catch);}}voidmiddleGo()throwsException{go();system.out.print(latemiddle);}voidgo()throwsExceptiOn{thrownewException();}如果调用topGo(),则结果为:()A.latemiddleB.catchC.latemiddlecatchD.catchIatemiddle

现有:classPasserfstaticfinalintX=5;publicstaticvoidmain(String[]args){newPasser().go(x);System.out.print(x);}voidgo(intx){System.out.print(x++);}结果是什么?() A.55B.56C.65D.66

publicclassWow{publicstaticvoidgo(shortn){System.out.println(”short”);}publicstaticvoidgo(Shortn){System.out.println(”SHORT”);}publicstaticvoidgo(Longn){System.out.println(”LONG”);}publicstaticvoidmain(String[]args){Shorty=6;intz=7;go(y);go(z);}}Whatistheresult?()A.shortLONGB.SHORTLONGC.Compilationfails.D.Anexceptionisthrownatruntime.

publicclassYikes{publicstaticvoidgo(Longn){System.out.println(”Long);}publicstaticvoidgo(Shortn){System.out.println(”Short);}publicstaticvoidgo(intn){System.out.println(”int);}publicstaticvoidmain(String[]args){shorty=6;longz=7;go(y);go(z);}}Whatistheresult?()A.intLongB.ShortLongC.Compilationfails.D.Anexceptionisthrownatruntime.

1.publicclassGoTest{2.publicstaticvoidmain(String[]args){3.Sentea=newSente();a.go();4.Gobanb=newGoban();b.go();5.Stonec=newStone();c.go();6.}7.}8.9.classSenteimplementsGo{10.publicvoidgo(){System.out.println(”goinSente.”);}11.}12.13.classGobanextendsSente{14.publicvoidgo(){System.out.println(”goinGoban”);}15.}16.17.classStoneextendsGobanimplementsGo{}18.19.interfaceGo{publicvoidgo();}Whatistheresult?()

下列选项中,循环会无限执行的是______。A.int i = 1 ; while (i < 10) System .out .print(“ ” + i) ;B.for(int i = 1 ; i < 10 ;i ++) System .out .print(“ ” + i);C.for(int i = 10 ; i > 0 ;i --) System .out .print(“ ” + i);D.int i = 1 ; while (true) { System .out .print(“ ” + i); i ++ ; if (i > 5) break ;

已知s0=8,则表达式out = s0 ? i1 : i2的结果是 。A.out=i1B.out=i2C.out=1D.out=0