题目内容

下列选项中,循环会无限执行的是

A. for(int i=1;i<10;i++) {}
B. int i=1;while(true){i++;if(i>5) break;}
C. int i=1;while(1<10) {}
D. for(int i=0;i>0;i--){}

查看答案
更多问题

用于从循环中跳出的语句是

A. continue
B. break
C. stop
D. throw

下列Java语句中属于跳转语句的是()

A. break
B. try
C. catch
D. finally

下列选项中,不能输出10个整数的是()

A. for(int i=0;i<10;i++) System.out.println(i);
B. int i=0;do{System.out.println(i);i++;}while(i<10);
C. int i=0;while(i<10){System.out.println(i);i++}
D. int i=0;while(i<10){i++;if(i<10) continue;System.out.println(i);}

Matching-up: Match the word with the definition and put a correct letter before the corresponding word.()1. approveA. v. bring to a common point of union; bring all efforts to bear on one activity()2. strainB. n. a mistake, mark, or weakness that makes sth. imperfect()3. outbreakC.v.believe that sb. or sth. Is good or suitable; agree officially to()4. remarkableD.vt. Make (a situation or relationship) more difficult; stretch tightly by pulling()5. concentrateE.ad. In a suitable manner; consequently, therefore( )6. undermineF. n.great care and attention()7. flawG.vt. make (sb.) interested and excited()8. cautionH.n.a sudden or violent start of sth. Unwelcome, such as disease()9.accordinglyI. vt.weaken or ruin secretly or gradually()10.stimulateJ.a. worthy of attention; striking

答案查题题库