网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
25.intx=12; 26. while (x < 10) { 27. x--; 28. } 29. System.out.print(x); What is the result?()
- A、 0
- B、 10
- C、 12
- D、 Line 29 will never be reached.
参考答案
更多 “ 25.intx=12; 26. while (x 10) { 27. x--; 28. } 29. System.out.print(x); What is the result?()A、 0B、 10C、 12D、 Line 29 will never be reached.” 相关考题
考题
下列的程序段中与上题的程序段对y的计算结果相同的是 ______。A.x=34567 y=0 flag=.T. DO WHIL flag y=x% 10+y * 10 x=int(x/10) IF x>0 flag=.F. ENDIF ENDDOB.x=34567 y=0 flag=.T. DO WHIL flag y=x%10+y * 10 x=int(x/10) IF x=0 flag=.F. ENDIF ENDDOC.x=34567 y=0 flag=.T. DO WHIL!flag y=x%10+y* 10 x=int(x/10) IF x>0 flag=.F. ENDIF ENDDOD.x=34567 y=0 flag=.T. DO WHIL!flag y=x%10+y* 10 x=int(x/10) IF x=0 flag=.T. ENDIF ENDDO
考题
26. My cousin has been happy since he_________ to spend more time with his friends.A. will allowB. will be allowedC. allowedD. was allowed
考题
11.classCup{}12.classPoisonCupextendsCup{}21.publicvoidtakeCup(Cupc){22.if(cinstanceofPoisonCup){23.System.out.println(”Inconceivable!”);24.}elseif(cinstanceofCup){25.System.out.println(”Dizzyingintellect!”);26.}else{27.System.exit(0);28.}29.}Andtheexecutionofthestatements:Cupcup=newPoisonCup();takeCup(cup);Whatistheoutput?()A.Inconceivable!B.Dizzyingintellect!C.Thecoderunswithnooutput.D.Anexceptionisthrownatruntime.E.Compilationfailsbecauseofanerrorinline22.
考题
11.classPerson{12.Stringname=Noname?;13.publicPerson(Stringnm){name=nm;}14.}15.16.classEmployeeextendsPerson{17.StringemplD=0000”;18.publicEmployee(Stringid){empID=id;}19.}20.21.publicclassEmployeeTest{22.publicstaticvoidmain(String[]args){23.Employeee=newEmployee(”4321”);24.System.out.println(e.empID);25.}26.}Whatistheresult?()A.4321B.0000C.Anexceptionisthrownatruntime.D.Compilationfailsbecauseofanerrorinline18.
考题
interfaceFoo{11.intbar();12.&ensp
10.interfaceFoo{11.intbar();12.}13.14.publicclassBeta{15.16.classAimplementsFoo{17.publicintbar(){return1;}18.}19.20.publicintfubar(Foofoo){returnfoo.bar();}21.22.publicvoidtestFoo(){23.24.classAimplementsFoo{25.publicintbar(){return2;}26.}27.28.System.out.println(fubar(newA()));29.}30.31.publicstaticvoidmain(String[]argv){32.newBeta().testFoo();33.}34.}Whichthreestatementsaretrue?()
考题
Assumethatcountryissetforeachclass.Given:10.publicclassMoney{11.privateStringcountry,name;12.publicgetCountry(){returncountry;}13.}and:24.classYenextendsMoney{25.publicStringgetCountry(){returnsuper.country;}26.}27.28.classEuroextendsMoney{29.publicStringgetCountry(StringtimeZone){30.returnsuper.getCountry();31.}32.}Whichtwoarecorrect?()A.Yenreturnscorrectvalues.B.Euroreturnscorrectvalues.C.Anexceptionisthrownatruntime.D.YenandEurobothreturncorrectvalues.E.Compilationfailsbecauseofanerroratline25.F.Compilationfailsbecauseofanerroratline30.
考题
有以下程序 include int fun(char s[]) { int n=O; whil
有以下程序 #include <stdio.h> int fun(char s[]) { int n=O; while(*s<='9'*s>='0') { n=10*n+*s-'0'; s++; } return (n); } main() { char s[10]={ '6', '1', '*', '4', '*', '9', '*', '0', '*'}; printf("%d\n",fun(s)); }A.9B.61490C.61D.5
考题
有以下程序 include void fun(char *t, char *s) { whil
有以下程序 #include <stdio.h> void fun(char *t, char *s) { while(*t!=0) t++; while( (*t++ = *s++ )!=0 ); main() { char ss[10]="acc",aa[10]="bbxxyy"; fun(ss, aa); printff"%s,%s\n", ss,aa); 程序的运行结果是A.accxyy, bbxxyyB.acc, bbxxyyC.accxxyy, bbxxyyD.accbbxxyy, bbxxyy
考题
有以下程序: #includestdio.h main( ) { char*s="[2]34";int k=0,a=0; whil(s[k+1]!=\0) { k++; if(k%2=o){a=a+(s[k]-0+1);continue; } a=a+(s[k]-0); printf("k=%d a=%d\n",k,a); } 程序运行后的输出结果是( )。A.k=6 a=11B.k=3 a=14C.k=4 a=12D.k=5 a=15
考题
26. Diana,together with her friends,__________Chinese in China.A. studyB. have studiedC. studiesD. are studying
考题
混凝土试块试压后,某组三个试件的强度分别为26. 5MPa、30. 5MPa、 35. 2MPa。该组试件的混凝土强度代表值为:
A. 30. 73MPa B. 26. 5MPa C. 30. 5MPa D. 35. 2MPa
考题
25.intx=12; 26.while(x10){ 27.x--; 28.} 29.System.out.print(x); What is the result?()A、0B、10C、12D、Line29willneverbereached.
考题
单选题Given: What is the result?()A
CanadaB
null CanadaC
Canada nullD
Canada CanadaE
Compilation fails due to an error on line 26.
考题
单选题25.intx=12; 26.while(x10){ 27.x--; 28.} 29.System.out.print(x); What is the result?()A
0B
10C
12D
Line29willneverbereached.
考题
单选题25.intx=12; 26. while (x 10) { 27. x--; 28. } 29. System.out.print(x); What is the result?()A
0B
10C
12D
Line 29 will never be reached.
考题
填空题铣床夹具的对刀装置主要由()和()组成。26.为减小传动元件对传动精度的影响,应采用()。
热门标签
最新试卷